diff --git a/shop/.gitignore b/shop/.gitignore index b4d35a4..ad35f02 100644 --- a/shop/.gitignore +++ b/shop/.gitignore @@ -1,7 +1,7 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies -node_modules +/node_modules /.pnp .pnp.js .yarn/install-state.gz diff --git a/shop/package-lock.json b/shop/package-lock.json index f5e0597..ced2677 100644 --- a/shop/package-lock.json +++ b/shop/package-lock.json @@ -40,7 +40,7 @@ "@types/react": "^18", "@types/react-dom": "^18", "autoprefixer": "^10.0.1", - "eslint": "^8", + "eslint": "^8.56.0", "eslint-config-next": "14.0.4", "postcss": "^8", "tailwindcss": "^3.3.0", diff --git a/shop/package.json b/shop/package.json index 7d9eb33..8d2a795 100644 --- a/shop/package.json +++ b/shop/package.json @@ -41,7 +41,7 @@ "@types/react": "^18", "@types/react-dom": "^18", "autoprefixer": "^10.0.1", - "eslint": "^8", + "eslint": "^8.56.0", "eslint-config-next": "14.0.4", "postcss": "^8", "tailwindcss": "^3.3.0", diff --git a/shop/src/app/dashboard/components/date-range-picker.tsx b/shop/src/app/dashboard/components/date-range-picker.tsx index 1cefd1b..fc34a1a 100644 --- a/shop/src/app/dashboard/components/date-range-picker.tsx +++ b/shop/src/app/dashboard/components/date-range-picker.tsx @@ -1,18 +1,18 @@ -"use client" +'use client' -import * as React from "react" -import { CalendarIcon } from "@radix-ui/react-icons" -import { addDays, format } from "date-fns" -import { DateRange } from "react-day-picker" +import * as React from 'react' +import { CalendarIcon } from '@radix-ui/react-icons' +import { addDays, format } from 'date-fns' +import { DateRange } from 'react-day-picker' -import { cn } from "@/lib/utils" -import { PrimaryButton as Button } from "@/components/ui/button" -import { Calendar } from "@/components/ui/calendar" +import { cn } from '@/lib/utils' +import { PrimaryButton as Button } from '@/components/ui/button' +import { Calendar } from '@/components/ui/calendar' import { Popover, PopoverContent, PopoverTrigger, -} from "@/components/ui/popover" +} from '@/components/ui/popover' export function CalendarDateRangePicker({ className, @@ -23,26 +23,26 @@ export function CalendarDateRangePicker({ }) return ( -
+
) -} \ No newline at end of file +} diff --git a/shop/src/app/dashboard/components/main-nav.tsx b/shop/src/app/dashboard/components/main-nav.tsx index ab3f011..bdbf43d 100644 --- a/shop/src/app/dashboard/components/main-nav.tsx +++ b/shop/src/app/dashboard/components/main-nav.tsx @@ -1,6 +1,6 @@ -import Link from "next/link" +import Link from 'next/link' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' export function MainNav({ className, @@ -8,7 +8,7 @@ export function MainNav({ }: React.HTMLAttributes) { return ( ) -} \ No newline at end of file +} diff --git a/shop/src/app/dashboard/components/overview.tsx b/shop/src/app/dashboard/components/overview.tsx index 17d7616..0c19d46 100644 --- a/shop/src/app/dashboard/components/overview.tsx +++ b/shop/src/app/dashboard/components/overview.tsx @@ -1,54 +1,54 @@ -"use client" +'use client' -import { Bar, BarChart, ResponsiveContainer, XAxis, YAxis } from "recharts" +import { Bar, BarChart, ResponsiveContainer, XAxis, YAxis } from 'recharts' const data = [ { - name: "Jan", + name: 'Jan', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Feb", + name: 'Feb', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Mar", + name: 'Mar', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Apr", + name: 'Apr', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "May", + name: 'May', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Jun", + name: 'Jun', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Jul", + name: 'Jul', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Aug", + name: 'Aug', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Sep", + name: 'Sep', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Oct", + name: 'Oct', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Nov", + name: 'Nov', total: Math.floor(Math.random() * 5000) + 1000, }, { - name: "Dec", + name: 'Dec', total: Math.floor(Math.random() * 5000) + 1000, }, ] @@ -80,4 +80,4 @@ export function Overview() { ) -} \ No newline at end of file +} diff --git a/shop/src/app/dashboard/components/recent-sales.tsx b/shop/src/app/dashboard/components/recent-sales.tsx index 0ac9d34..5c804aa 100644 --- a/shop/src/app/dashboard/components/recent-sales.tsx +++ b/shop/src/app/dashboard/components/recent-sales.tsx @@ -1,71 +1,67 @@ -import { - Avatar, - AvatarFallback, - AvatarImage, - } from "@/components/ui/avatar" - - export function RecentSales() { - return ( -
-
- - - OM - -
-

Olivia Martin

-

- olivia.martin@email.com -

-
-
+$1,999.00
+import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' + +export function RecentSales() { + return ( +
+
+ + + OM + +
+

Olivia Martin

+

+ olivia.martin@email.com +

-
- - - JL - -
-

Jackson Lee

-

jackson.lee@email.com

-
-
+$39.00
+
+$1,999.00
+
+
+ + + JL + +
+

Jackson Lee

+

jackson.lee@email.com

-
- - - IN - -
-

Isabella Nguyen

-

- isabella.nguyen@email.com -

-
-
+$299.00
+
+$39.00
+
+
+ + + IN + +
+

Isabella Nguyen

+

+ isabella.nguyen@email.com +

-
- - - WK - -
-

William Kim

-

will@email.com

-
-
+$99.00
+
+$299.00
+
+
+ + + WK + +
+

William Kim

+

will@email.com

-
- - - SD - -
-

Sofia Davis

-

sofia.davis@email.com

-
-
+$39.00
+
+$99.00
+
+
+ + + SD + +
+

Sofia Davis

+

sofia.davis@email.com

+
+$39.00
- ) - } \ No newline at end of file +
+ ) +} diff --git a/shop/src/app/dashboard/components/search.tsx b/shop/src/app/dashboard/components/search.tsx index 8fcc713..0e563bb 100644 --- a/shop/src/app/dashboard/components/search.tsx +++ b/shop/src/app/dashboard/components/search.tsx @@ -1,4 +1,4 @@ -import { Input } from "@/components/ui/input" +import { Input } from '@/components/ui/input' export function Search() { return ( @@ -10,4 +10,4 @@ export function Search() { />
) -} \ No newline at end of file +} diff --git a/shop/src/app/dashboard/components/team-switcher.tsx b/shop/src/app/dashboard/components/team-switcher.tsx index a4c4c32..bba6f6b 100644 --- a/shop/src/app/dashboard/components/team-switcher.tsx +++ b/shop/src/app/dashboard/components/team-switcher.tsx @@ -1,19 +1,15 @@ -"use client" +'use client' -import * as React from "react" +import * as React from 'react' import { CaretSortIcon, CheckIcon, PlusCircledIcon, -} from "@radix-ui/react-icons" +} from '@radix-ui/react-icons' -import { cn } from "@/lib/utils" -import { - Avatar, - AvatarFallback, - AvatarImage, -} from "@/components/ui/avatar" -import { PrimaryButton as Button } from "@/components/ui/button" +import { cn } from '@/lib/utils' +import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' +import { PrimaryButton as Button } from '@/components/ui/button' import { Command, CommandEmpty, @@ -22,7 +18,7 @@ import { CommandItem, CommandList, CommandSeparator, -} from "@/components/ui/command" +} from '@/components/ui/command' import { Dialog, DialogContent, @@ -31,48 +27,48 @@ import { DialogHeader, DialogTitle, DialogTrigger, -} from "@/components/ui/dialog" -import { Input } from "@/components/ui/input" -import { Label } from "@/components/ui/label" +} from '@/components/ui/dialog' +import { Input } from '@/components/ui/input' +import { Label } from '@/components/ui/label' import { Popover, PopoverContent, PopoverTrigger, -} from "@/components/ui/popover" +} from '@/components/ui/popover' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, -} from "@/components/ui/select" +} from '@/components/ui/select' const groups = [ { - label: "Personal Account", + label: 'Personal Account', teams: [ { - label: "Alicia Koch", - value: "personal", + label: 'Alicia Koch', + value: 'personal', }, ], }, { - label: "Teams", + label: 'Teams', teams: [ { - label: "Acme Inc.", - value: "acme-inc", + label: 'Acme Inc.', + value: 'acme-inc', }, { - label: "Monsters Inc.", - value: "monsters", + label: 'Monsters Inc.', + value: 'monsters', }, ], }, ] -type Team = (typeof groups)[number]["teams"][number] +type Team = (typeof groups)[number]['teams'][number] type PopoverTriggerProps = React.ComponentPropsWithoutRef @@ -82,7 +78,7 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { const [open, setOpen] = React.useState(false) const [showNewTeamDialog, setShowNewTeamDialog] = React.useState(false) const [selectedTeam, setSelectedTeam] = React.useState( - groups[0].teams[0] + groups[0].teams[0], ) return ( @@ -94,7 +90,7 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { role="combobox" aria-expanded={open} aria-label="Select a team" - className={cn("w-[200px] justify-between", className)} + className={cn('w-[200px] justify-between', className)} > @@ -186,13 +182,13 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { - Free -{" "} + Free -{' '} Trial for two weeks - Pro -{" "} + Pro -{' '} $9/month per user @@ -211,4 +207,4 @@ export default function TeamSwitcher({ className }: TeamSwitcherProps) { ) -} \ No newline at end of file +} diff --git a/shop/src/app/dashboard/components/user-nav.tsx b/shop/src/app/dashboard/components/user-nav.tsx index 027c752..ee198f8 100644 --- a/shop/src/app/dashboard/components/user-nav.tsx +++ b/shop/src/app/dashboard/components/user-nav.tsx @@ -1,62 +1,58 @@ +import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' +import { PrimaryButton as Button } from '@/components/ui/button' import { - Avatar, - AvatarFallback, - AvatarImage, - } from "@/components/ui/avatar" - import { PrimaryButton as Button } from "@/components/ui/button" - import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuGroup, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuShortcut, - DropdownMenuTrigger, - } from "@/components/ui/dropdown-menu" - - export function UserNav() { - return ( - - - - - - -
-

shadcn

-

- m@example.com -

-
-
- - - - Profile - ⇧⌘P - - - Billing - ⌘B - - - Settings - ⌘S - - New Team - - + DropdownMenu, + DropdownMenuContent, + DropdownMenuGroup, + DropdownMenuItem, + DropdownMenuLabel, + DropdownMenuSeparator, + DropdownMenuShortcut, + DropdownMenuTrigger, +} from '@/components/ui/dropdown-menu' + +export function UserNav() { + return ( + + + + + + +
+

shadcn

+

+ m@example.com +

+
+
+ + - Log out - ⇧⌘Q + Profile + ⇧⌘P -
-
- ) - } \ No newline at end of file + + Billing + ⌘B + + + Settings + ⌘S + + New Team + + + + Log out + ⇧⌘Q + +
+
+ ) +} diff --git a/shop/src/app/dashboard/page.tsx b/shop/src/app/dashboard/page.tsx index 3940c5f..697768b 100644 --- a/shop/src/app/dashboard/page.tsx +++ b/shop/src/app/dashboard/page.tsx @@ -1,7 +1,7 @@ -import { Metadata } from "next" -import Image from "next/image" +import { Metadata } from 'next' +import Image from 'next/image' -import { PrimaryButton as Button } from "@/components/ui/button" +import { PrimaryButton as Button } from '@/components/ui/button' import { Card, CardContent, @@ -9,24 +9,19 @@ import { CardFooter, CardHeader, CardTitle, -} from "@/components/ui/card" -import { - Tabs, - TabsContent, - TabsList, - TabsTrigger, -} from "@/components/ui/tabs" -import { CalendarDateRangePicker } from "@/app/dashboard/components/date-range-picker" -import { MainNav } from "@/app/dashboard/components/main-nav" -import { Overview } from "@/app/dashboard/components/overview" -import { RecentSales } from "@/app/dashboard/components/recent-sales" -import { Search } from "@/app/dashboard/components/search" -import TeamSwitcher from "@/app/dashboard/components/team-switcher" -import { UserNav } from "@/app/dashboard/components/user-nav" +} from '@/components/ui/card' +import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs' +import { CalendarDateRangePicker } from '@/app/dashboard/components/date-range-picker' +import { MainNav } from '@/app/dashboard/components/main-nav' +import { Overview } from '@/app/dashboard/components/overview' +import { RecentSales } from '@/app/dashboard/components/recent-sales' +import { Search } from '@/app/dashboard/components/search' +import TeamSwitcher from '@/app/dashboard/components/team-switcher' +import { UserNav } from '@/app/dashboard/components/user-nav' export const metadata: Metadata = { - title: "Dashboard", - description: "Merchant Dashboard for Esprit Payments App", + title: 'Dashboard', + description: 'Merchant Dashboard for Esprit Payments App', } export default function DashboardPage() { @@ -61,7 +56,9 @@ export default function DashboardPage() {
-

Esprit Merchant Dashboard

+

+ Esprit Merchant Dashboard +

{/* */} @@ -212,4 +209,3 @@ export default function DashboardPage() { ) } - diff --git a/shop/src/components/ui/avatar.tsx b/shop/src/components/ui/avatar.tsx index 51e507b..77fde46 100644 --- a/shop/src/components/ui/avatar.tsx +++ b/shop/src/components/ui/avatar.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as AvatarPrimitive from "@radix-ui/react-avatar" +import * as React from 'react' +import * as AvatarPrimitive from '@radix-ui/react-avatar' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Avatar = React.forwardRef< React.ElementRef, @@ -12,8 +12,8 @@ const Avatar = React.forwardRef< @@ -26,7 +26,7 @@ const AvatarImage = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -39,8 +39,8 @@ const AvatarFallback = React.forwardRef< diff --git a/shop/src/components/ui/calendar.tsx b/shop/src/components/ui/calendar.tsx index 2f02434..ba06d14 100644 --- a/shop/src/components/ui/calendar.tsx +++ b/shop/src/components/ui/calendar.tsx @@ -1,11 +1,11 @@ -"use client" +'use client' -import * as React from "react" -import { ChevronLeft, ChevronRight } from "lucide-react" -import { DayPicker } from "react-day-picker" +import * as React from 'react' +import { ChevronLeft, ChevronRight } from 'lucide-react' +import { DayPicker } from 'react-day-picker' -import { cn } from "@/lib/utils" -import { buttonVariants } from "@/components/ui/button" +import { cn } from '@/lib/utils' +import { buttonVariants } from '@/components/ui/button' export type CalendarProps = React.ComponentProps @@ -18,39 +18,39 @@ function Calendar({ return ( ) } -Calendar.displayName = "Calendar" +Calendar.displayName = 'Calendar' export { Calendar } diff --git a/shop/src/components/ui/card.tsx b/shop/src/components/ui/card.tsx index afa13ec..c5d18d4 100644 --- a/shop/src/components/ui/card.tsx +++ b/shop/src/components/ui/card.tsx @@ -1,6 +1,6 @@ -import * as React from "react" +import * as React from 'react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Card = React.forwardRef< HTMLDivElement, @@ -9,13 +9,13 @@ const Card = React.forwardRef<
)) -Card.displayName = "Card" +Card.displayName = 'Card' const CardHeader = React.forwardRef< HTMLDivElement, @@ -23,11 +23,11 @@ const CardHeader = React.forwardRef< >(({ className, ...props }, ref) => (
)) -CardHeader.displayName = "CardHeader" +CardHeader.displayName = 'CardHeader' const CardTitle = React.forwardRef< HTMLParagraphElement, @@ -36,13 +36,13 @@ const CardTitle = React.forwardRef<

)) -CardTitle.displayName = "CardTitle" +CardTitle.displayName = 'CardTitle' const CardDescription = React.forwardRef< HTMLParagraphElement, @@ -50,19 +50,19 @@ const CardDescription = React.forwardRef< >(({ className, ...props }, ref) => (

)) -CardDescription.displayName = "CardDescription" +CardDescription.displayName = 'CardDescription' const CardContent = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => ( -

+
)) -CardContent.displayName = "CardContent" +CardContent.displayName = 'CardContent' const CardFooter = React.forwardRef< HTMLDivElement, @@ -70,10 +70,10 @@ const CardFooter = React.forwardRef< >(({ className, ...props }, ref) => (
)) -CardFooter.displayName = "CardFooter" +CardFooter.displayName = 'CardFooter' export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } diff --git a/shop/src/components/ui/command.tsx b/shop/src/components/ui/command.tsx index 17cc641..55bb382 100644 --- a/shop/src/components/ui/command.tsx +++ b/shop/src/components/ui/command.tsx @@ -1,12 +1,12 @@ -"use client" +'use client' -import * as React from "react" -import { type DialogProps } from "@radix-ui/react-dialog" -import { Command as CommandPrimitive } from "cmdk" -import { Search } from "lucide-react" +import * as React from 'react' +import { type DialogProps } from '@radix-ui/react-dialog' +import { Command as CommandPrimitive } from 'cmdk' +import { Search } from 'lucide-react' -import { cn } from "@/lib/utils" -import { Dialog, DialogContent } from "@/components/ui/dialog" +import { cn } from '@/lib/utils' +import { Dialog, DialogContent } from '@/components/ui/dialog' const Command = React.forwardRef< React.ElementRef, @@ -15,8 +15,8 @@ const Command = React.forwardRef< @@ -46,8 +46,8 @@ const CommandInput = React.forwardRef< @@ -62,7 +62,7 @@ const CommandList = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -89,8 +89,8 @@ const CommandGroup = React.forwardRef< @@ -104,7 +104,7 @@ const CommandSeparator = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -117,8 +117,8 @@ const CommandItem = React.forwardRef< @@ -133,14 +133,14 @@ const CommandShortcut = ({ return ( ) } -CommandShortcut.displayName = "CommandShortcut" +CommandShortcut.displayName = 'CommandShortcut' export { Command, diff --git a/shop/src/components/ui/dialog.tsx b/shop/src/components/ui/dialog.tsx index 01ff19c..dc6bce6 100644 --- a/shop/src/components/ui/dialog.tsx +++ b/shop/src/components/ui/dialog.tsx @@ -1,10 +1,10 @@ -"use client" +'use client' -import * as React from "react" -import * as DialogPrimitive from "@radix-ui/react-dialog" -import { X } from "lucide-react" +import * as React from 'react' +import * as DialogPrimitive from '@radix-ui/react-dialog' +import { X } from 'lucide-react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Dialog = DialogPrimitive.Root @@ -21,8 +21,8 @@ const DialogOverlay = React.forwardRef< @@ -38,8 +38,8 @@ const DialogContent = React.forwardRef< @@ -59,13 +59,13 @@ const DialogHeader = ({ }: React.HTMLAttributes) => (
) -DialogHeader.displayName = "DialogHeader" +DialogHeader.displayName = 'DialogHeader' const DialogFooter = ({ className, @@ -73,13 +73,13 @@ const DialogFooter = ({ }: React.HTMLAttributes) => (
) -DialogFooter.displayName = "DialogFooter" +DialogFooter.displayName = 'DialogFooter' const DialogTitle = React.forwardRef< React.ElementRef, @@ -88,8 +88,8 @@ const DialogTitle = React.forwardRef< @@ -102,7 +102,7 @@ const DialogDescription = React.forwardRef< >(({ className, ...props }, ref) => ( )) diff --git a/shop/src/components/ui/dropdown-menu.tsx b/shop/src/components/ui/dropdown-menu.tsx index f69a0d6..d11aed5 100644 --- a/shop/src/components/ui/dropdown-menu.tsx +++ b/shop/src/components/ui/dropdown-menu.tsx @@ -1,10 +1,10 @@ -"use client" +'use client' -import * as React from "react" -import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu" -import { Check, ChevronRight, Circle } from "lucide-react" +import * as React from 'react' +import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu' +import { Check, ChevronRight, Circle } from 'lucide-react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const DropdownMenu = DropdownMenuPrimitive.Root @@ -27,9 +27,9 @@ const DropdownMenuSubTrigger = React.forwardRef< @@ -47,8 +47,8 @@ const DropdownMenuSubContent = React.forwardRef< @@ -65,8 +65,8 @@ const DropdownMenuContent = React.forwardRef< ref={ref} sideOffset={sideOffset} className={cn( - "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", - className + 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', + className, )} {...props} /> @@ -83,9 +83,9 @@ const DropdownMenuItem = React.forwardRef< @@ -99,8 +99,8 @@ const DropdownMenuCheckboxItem = React.forwardRef< @@ -147,9 +147,9 @@ const DropdownMenuLabel = React.forwardRef< @@ -162,7 +162,7 @@ const DropdownMenuSeparator = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -174,12 +174,12 @@ const DropdownMenuShortcut = ({ }: React.HTMLAttributes) => { return ( ) } -DropdownMenuShortcut.displayName = "DropdownMenuShortcut" +DropdownMenuShortcut.displayName = 'DropdownMenuShortcut' export { DropdownMenu, diff --git a/shop/src/components/ui/input.tsx b/shop/src/components/ui/input.tsx index 677d05f..fc5146e 100644 --- a/shop/src/components/ui/input.tsx +++ b/shop/src/components/ui/input.tsx @@ -1,6 +1,6 @@ -import * as React from "react" +import * as React from 'react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' export interface InputProps extends React.InputHTMLAttributes {} @@ -11,15 +11,15 @@ const Input = React.forwardRef( ) - } + }, ) -Input.displayName = "Input" +Input.displayName = 'Input' export { Input } diff --git a/shop/src/components/ui/label.tsx b/shop/src/components/ui/label.tsx index 5341821..fb5c545 100644 --- a/shop/src/components/ui/label.tsx +++ b/shop/src/components/ui/label.tsx @@ -1,13 +1,13 @@ -"use client" +'use client' -import * as React from "react" -import * as LabelPrimitive from "@radix-ui/react-label" -import { cva, type VariantProps } from "class-variance-authority" +import * as React from 'react' +import * as LabelPrimitive from '@radix-ui/react-label' +import { cva, type VariantProps } from 'class-variance-authority' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const labelVariants = cva( - "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" + 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', ) const Label = React.forwardRef< diff --git a/shop/src/components/ui/popover.tsx b/shop/src/components/ui/popover.tsx index a0ec48b..ce5e43f 100644 --- a/shop/src/components/ui/popover.tsx +++ b/shop/src/components/ui/popover.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as PopoverPrimitive from "@radix-ui/react-popover" +import * as React from 'react' +import * as PopoverPrimitive from '@radix-ui/react-popover' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Popover = PopoverPrimitive.Root @@ -12,15 +12,15 @@ const PopoverTrigger = PopoverPrimitive.Trigger const PopoverContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, align = "center", sideOffset = 4, ...props }, ref) => ( +>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => ( diff --git a/shop/src/components/ui/select.tsx b/shop/src/components/ui/select.tsx index cbe5a36..266754e 100644 --- a/shop/src/components/ui/select.tsx +++ b/shop/src/components/ui/select.tsx @@ -1,10 +1,10 @@ -"use client" +'use client' -import * as React from "react" -import * as SelectPrimitive from "@radix-ui/react-select" -import { Check, ChevronDown, ChevronUp } from "lucide-react" +import * as React from 'react' +import * as SelectPrimitive from '@radix-ui/react-select' +import { Check, ChevronDown, ChevronUp } from 'lucide-react' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Select = SelectPrimitive.Root @@ -19,8 +19,8 @@ const SelectTrigger = React.forwardRef< span]:line-clamp-1", - className + 'flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', + className, )} {...props} > @@ -39,8 +39,8 @@ const SelectScrollUpButton = React.forwardRef< @@ -56,8 +56,8 @@ const SelectScrollDownButton = React.forwardRef< @@ -70,15 +70,15 @@ SelectScrollDownButton.displayName = const SelectContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, children, position = "popper", ...props }, ref) => ( +>(({ className, children, position = 'popper', ...props }, ref) => ( {children} @@ -105,7 +105,7 @@ const SelectLabel = React.forwardRef< >(({ className, ...props }, ref) => ( )) @@ -118,8 +118,8 @@ const SelectItem = React.forwardRef< @@ -140,7 +140,7 @@ const SelectSeparator = React.forwardRef< >(({ className, ...props }, ref) => ( )) diff --git a/shop/src/components/ui/switch.tsx b/shop/src/components/ui/switch.tsx index bc69cf2..4ffe97a 100644 --- a/shop/src/components/ui/switch.tsx +++ b/shop/src/components/ui/switch.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as SwitchPrimitives from "@radix-ui/react-switch" +import * as React from 'react' +import * as SwitchPrimitives from '@radix-ui/react-switch' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Switch = React.forwardRef< React.ElementRef, @@ -11,15 +11,15 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => ( diff --git a/shop/src/components/ui/tabs.tsx b/shop/src/components/ui/tabs.tsx index 26eb109..03caf14 100644 --- a/shop/src/components/ui/tabs.tsx +++ b/shop/src/components/ui/tabs.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as TabsPrimitive from "@radix-ui/react-tabs" +import * as React from 'react' +import * as TabsPrimitive from '@radix-ui/react-tabs' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Tabs = TabsPrimitive.Root @@ -14,8 +14,8 @@ const TabsList = React.forwardRef< @@ -29,8 +29,8 @@ const TabsTrigger = React.forwardRef< @@ -44,8 +44,8 @@ const TabsContent = React.forwardRef<