aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/ui/badge.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 22:37:41 +0000
committerMohamed Bassem <me@mbassem.com>2024-03-14 16:40:45 +0000
commita03f1dc2ac25579df30e8cb59d2703110c3e564d (patch)
tree59315e73cd83dc391660071c70752cf23989b3da /apps/web/components/ui/badge.tsx
parent04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (diff)
downloadkarakeep-a03f1dc2ac25579df30e8cb59d2703110c3e564d.tar.zst
lint: Lint and format the entire repo with the new configs
Diffstat (limited to 'apps/web/components/ui/badge.tsx')
-rw-r--r--apps/web/components/ui/badge.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/web/components/ui/badge.tsx b/apps/web/components/ui/badge.tsx
index c30daca1..7950a5ee 100644
--- a/apps/web/components/ui/badge.tsx
+++ b/apps/web/components/ui/badge.tsx
@@ -1,19 +1,19 @@
+import type { VariantProps } from "class-variance-authority";
import * as React from "react";
-import { cva, type VariantProps } from "class-variance-authority";
-
import { cn } from "@/lib/utils";
+import { cva } from "class-variance-authority";
const badgeVariants = cva(
- "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
variants: {
variant: {
default:
- "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent",
+ "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
secondary:
- "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",
+ "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
destructive:
- "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent",
+ "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
outline: "text-foreground",
},
},