From b25f17509e704eb41523bf455a33804cabf8aaca Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 9 Feb 2024 02:17:45 +0000 Subject: [chore] Linting and formating tweaking --- packages/web/components/ui/badge.tsx | 8 ++++---- packages/web/components/ui/button.tsx | 6 +++--- packages/web/components/ui/card.tsx | 4 ++-- packages/web/components/ui/dropdown-menu.tsx | 24 ++++++++++++------------ packages/web/components/ui/form.tsx | 4 ++-- packages/web/components/ui/imageCard.tsx | 8 ++++---- packages/web/components/ui/input.tsx | 2 +- packages/web/components/ui/toast.tsx | 12 ++++++------ 8 files changed, 34 insertions(+), 34 deletions(-) (limited to 'packages/web/components') diff --git a/packages/web/components/ui/badge.tsx b/packages/web/components/ui/badge.tsx index d3d5d604..c30daca1 100644 --- a/packages/web/components/ui/badge.tsx +++ b/packages/web/components/ui/badge.tsx @@ -4,16 +4,16 @@ import { cva, type VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; const badgeVariants = cva( - "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", + "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", { variants: { variant: { default: - "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", + "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent", secondary: - "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", + "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent", destructive: - "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", + "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent", outline: "text-foreground", }, }, diff --git a/packages/web/components/ui/button.tsx b/packages/web/components/ui/button.tsx index 57c9fe47..79b45fa0 100644 --- a/packages/web/components/ui/button.tsx +++ b/packages/web/components/ui/button.tsx @@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; const buttonVariants = cva( - "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", + "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", { variants: { variant: { @@ -13,7 +13,7 @@ const buttonVariants = cva( destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90", outline: - "border border-input bg-background hover:bg-accent hover:text-accent-foreground", + "border-input bg-background hover:bg-accent hover:text-accent-foreground border", secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground", @@ -23,7 +23,7 @@ const buttonVariants = cva( default: "h-10 px-4 py-2", sm: "h-9 rounded-md px-3", lg: "h-11 rounded-md px-8", - icon: "h-10 w-10", + icon: "size-10", }, }, defaultVariants: { diff --git a/packages/web/components/ui/card.tsx b/packages/web/components/ui/card.tsx index dc3b01de..f4e57996 100644 --- a/packages/web/components/ui/card.tsx +++ b/packages/web/components/ui/card.tsx @@ -9,7 +9,7 @@ const Card = React.forwardRef<
(({ className, ...props }, ref) => (

)); diff --git a/packages/web/components/ui/dropdown-menu.tsx b/packages/web/components/ui/dropdown-menu.tsx index 3a0c7fed..3a9a2ff7 100644 --- a/packages/web/components/ui/dropdown-menu.tsx +++ b/packages/web/components/ui/dropdown-menu.tsx @@ -27,14 +27,14 @@ const DropdownMenuSubTrigger = React.forwardRef< {children} - + )); DropdownMenuSubTrigger.displayName = @@ -47,7 +47,7 @@ const DropdownMenuSubContent = React.forwardRef< - + - + {children} @@ -123,14 +123,14 @@ const DropdownMenuRadioItem = React.forwardRef< - + - + {children} @@ -162,7 +162,7 @@ const DropdownMenuSeparator = React.forwardRef< >(({ className, ...props }, ref) => ( )); diff --git a/packages/web/components/ui/form.tsx b/packages/web/components/ui/form.tsx index 497718a9..e62e10e9 100644 --- a/packages/web/components/ui/form.tsx +++ b/packages/web/components/ui/form.tsx @@ -134,7 +134,7 @@ const FormDescription = React.forwardRef<

); @@ -156,7 +156,7 @@ const FormMessage = React.forwardRef<

{body} diff --git a/packages/web/components/ui/imageCard.tsx b/packages/web/components/ui/imageCard.tsx index 1394ae08..dae7da3f 100644 --- a/packages/web/components/ui/imageCard.tsx +++ b/packages/web/components/ui/imageCard.tsx @@ -10,7 +10,7 @@ export function ImageCard({ }: React.HTMLAttributes & { image?: string }) { return (

-
{children}
+
{children}
); } @@ -30,7 +30,7 @@ export function ImageCardTitle({ }: React.HTMLAttributes) { return (
); @@ -42,7 +42,7 @@ export function ImageCardBody({ }: React.HTMLAttributes) { return (
); diff --git a/packages/web/components/ui/input.tsx b/packages/web/components/ui/input.tsx index 9d631e7f..21aac7ad 100644 --- a/packages/web/components/ui/input.tsx +++ b/packages/web/components/ui/input.tsx @@ -11,7 +11,7 @@ const Input = React.forwardRef( - + )); ToastClose.displayName = ToastPrimitives.Close.displayName; -- cgit v1.2.3-70-g09d2