+
+
+ 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() {