From c9c041cabed5082c330155c0ec37b450cf377e68 Mon Sep 17 00:00:00 2001 From: Ricardo Castro Date: Mon, 15 Jul 2024 23:30:25 -0400 Subject: [PATCH] style: biome fix --- .../src/app/(auth)/login/login-form.tsx | 6 +++--- .../src/app/(auth)/login/page.tsx | 6 +++--- .../src/app/(auth)/login/verify/page.tsx | 4 ++-- .../src/app/(auth)/profile/page.tsx | 10 +++++----- .../src/app/(auth)/profile/upload-avatar.tsx | 6 +++--- .../register/confirm/[email]/verify-otp.tsx | 4 ++-- .../src/app/(auth)/register/page.tsx | 2 +- .../src/app/(auth)/register/register-form.tsx | 12 +++++------ .../app/(dashboard)/_components/nav-item.tsx | 4 ++-- .../dashboard/customers/customers.tsx | 10 +++++----- .../(dashboard)/dashboard/customers/page.tsx | 2 +- .../app/(dashboard)/dashboard/orders/page.tsx | 12 +++++------ .../dashboard/products/[product]/page.tsx | 2 +- .../(dashboard)/dashboard/products/actions.ts | 4 ++-- .../dashboard/products/create/page.tsx | 16 +++++++-------- .../(dashboard)/dashboard/products/page.tsx | 4 ++-- .../dashboard/products/product.tsx | 6 +++--- .../dashboard/products/products-table.tsx | 20 +++++++++---------- .../dashboard/products/products.tsx | 20 +++++++++---------- .../src/app/(dashboard)/layout.tsx | 20 +++++++++---------- .../src/app/(send)/send-gift/actions.tsx | 4 ++-- .../src/app/confirm/layout.tsx | 2 +- apps/gifting-concierge/src/app/page.tsx | 2 +- .../src/components/auth/actions.ts | 2 +- .../src/components/auth/signup-form.tsx | 2 +- .../src/components/gradient.tsx | 2 +- .../src/components/header/navigation.tsx | 2 +- packages/ui/package.json | 5 +---- packages/ui/src/accordion.tsx | 2 +- packages/ui/src/breadcrumb.tsx | 2 +- packages/ui/src/input-otp.tsx | 2 +- packages/ui/src/toggle-group.tsx | 2 +- packages/ui/src/toggle.tsx | 4 ++-- 33 files changed, 100 insertions(+), 103 deletions(-) diff --git a/apps/gifting-concierge/src/app/(auth)/login/login-form.tsx b/apps/gifting-concierge/src/app/(auth)/login/login-form.tsx index 3caf3df..da981b5 100644 --- a/apps/gifting-concierge/src/app/(auth)/login/login-form.tsx +++ b/apps/gifting-concierge/src/app/(auth)/login/login-form.tsx @@ -1,8 +1,9 @@ "use client"; -import React from "react"; import Link from "next/link"; +import React from "react"; +import { zodResolver } from "@hookform/resolvers/zod"; import { Button } from "@theliaison/ui/button"; import { Card, @@ -21,13 +22,12 @@ import { } from "@theliaison/ui/form"; import { Input } from "@theliaison/ui/input"; import { Label } from "@theliaison/ui/label"; -import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; +import { toast } from "sonner"; import type { z } from "zod"; import { useServerAction } from "zsa-react"; import { signInWithEmail } from "~/components/auth/actions"; import { signInWithEmailSchema } from "~/lib/validators/auth"; -import { toast } from "sonner"; export function LoginForm({ redirectTo }: { redirectTo: string }) { const { isPending, execute } = useServerAction(signInWithEmail); diff --git a/apps/gifting-concierge/src/app/(auth)/login/page.tsx b/apps/gifting-concierge/src/app/(auth)/login/page.tsx index aeb58cb..bcfa001 100644 --- a/apps/gifting-concierge/src/app/(auth)/login/page.tsx +++ b/apps/gifting-concierge/src/app/(auth)/login/page.tsx @@ -1,8 +1,8 @@ -import { redirect } from "next/navigation"; +import { Button, Input } from "@nextui-org/react"; import { headers } from "next/headers"; -import { createClient } from "~/supabase/server"; +import { redirect } from "next/navigation"; import { toast } from "sonner"; -import { Input, Button } from "@nextui-org/react"; +import { createClient } from "~/supabase/server"; export default async function LoginForm() { const signInWithGoogleAction = async () => { diff --git a/apps/gifting-concierge/src/app/(auth)/login/verify/page.tsx b/apps/gifting-concierge/src/app/(auth)/login/verify/page.tsx index 061676e..9950350 100644 --- a/apps/gifting-concierge/src/app/(auth)/login/verify/page.tsx +++ b/apps/gifting-concierge/src/app/(auth)/login/verify/page.tsx @@ -1,6 +1,6 @@ -import { createClient } from "~/supabase/server"; +import { Button, Input } from "@nextui-org/react"; import { redirect } from "next/navigation"; -import { Input, Button } from "@nextui-org/react"; +import { createClient } from "~/supabase/server"; export default function Verify({ searchParams, diff --git a/apps/gifting-concierge/src/app/(auth)/profile/page.tsx b/apps/gifting-concierge/src/app/(auth)/profile/page.tsx index a9e299a..29fd2b5 100644 --- a/apps/gifting-concierge/src/app/(auth)/profile/page.tsx +++ b/apps/gifting-concierge/src/app/(auth)/profile/page.tsx @@ -1,7 +1,4 @@ -import { redirect } from "next/navigation"; -import { createClient } from "~/supabase/server"; -import { Input, Avatar, Button } from "@nextui-org/react"; -import { revalidatePath } from "next/cache"; +import { Avatar, Button, Input } from "@nextui-org/react"; import { Select, SelectContent, @@ -11,8 +8,11 @@ import { SelectTrigger, SelectValue, } from "@theliaison/ui/select"; -import { UploadAvatar } from "./upload-avatar"; +import { revalidatePath } from "next/cache"; +import { redirect } from "next/navigation"; import { env } from "~/env"; +import { createClient } from "~/supabase/server"; +import { UploadAvatar } from "./upload-avatar"; export default async function ProfilePage() { const supabase = createClient(); diff --git a/apps/gifting-concierge/src/app/(auth)/profile/upload-avatar.tsx b/apps/gifting-concierge/src/app/(auth)/profile/upload-avatar.tsx index 47ef17c..c26ced3 100644 --- a/apps/gifting-concierge/src/app/(auth)/profile/upload-avatar.tsx +++ b/apps/gifting-concierge/src/app/(auth)/profile/upload-avatar.tsx @@ -1,9 +1,9 @@ "use client"; -import { createClient } from "~/supabase/client"; -import { useRef } from "react"; -import { useRouter } from "next/navigation"; import { nanoid } from "nanoid"; +import { useRouter } from "next/navigation"; +import { useRef } from "react"; +import { createClient } from "~/supabase/client"; export function UploadAvatar({ userId }: { userId: string }) { const inputRef = useRef(null); diff --git a/apps/gifting-concierge/src/app/(auth)/register/confirm/[email]/verify-otp.tsx b/apps/gifting-concierge/src/app/(auth)/register/confirm/[email]/verify-otp.tsx index b4d8246..875d765 100644 --- a/apps/gifting-concierge/src/app/(auth)/register/confirm/[email]/verify-otp.tsx +++ b/apps/gifting-concierge/src/app/(auth)/register/confirm/[email]/verify-otp.tsx @@ -2,6 +2,7 @@ import React from "react"; +import { cn } from "@theliaison/ui"; import { InputOTP, InputOTPGroup, @@ -10,10 +11,9 @@ import { } from "@theliaison/ui/input-otp"; import { REGEXP_ONLY_DIGITS } from "input-otp"; import { SendIcon } from "lucide-react"; -import { verifyOtp } from "~/components/auth/actions"; -import { cn } from "@theliaison/ui"; import { useRouter } from "next/navigation"; import { toast } from "sonner"; +import { verifyOtp } from "~/components/auth/actions"; export function VerifyOtp({ email }: { email: string }) { const [verifyStatus, setVerifyStatus] = React.useState< diff --git a/apps/gifting-concierge/src/app/(auth)/register/page.tsx b/apps/gifting-concierge/src/app/(auth)/register/page.tsx index 0a519f6..98b7046 100644 --- a/apps/gifting-concierge/src/app/(auth)/register/page.tsx +++ b/apps/gifting-concierge/src/app/(auth)/register/page.tsx @@ -1,7 +1,7 @@ "use client"; +import { Card, CardContent, CardHeader } from "@theliaison/ui/card"; import React from "react"; import { RegisterForm } from "./register-form"; -import { Card, CardContent, CardHeader } from "@theliaison/ui/card"; export default function Register() { const queryString = diff --git a/apps/gifting-concierge/src/app/(auth)/register/register-form.tsx b/apps/gifting-concierge/src/app/(auth)/register/register-form.tsx index ebf9b0b..b31f4dd 100644 --- a/apps/gifting-concierge/src/app/(auth)/register/register-form.tsx +++ b/apps/gifting-concierge/src/app/(auth)/register/register-form.tsx @@ -1,6 +1,5 @@ "use client"; -import React from "react"; import { zodResolver } from "@hookform/resolvers/zod"; import { cn } from "@theliaison/ui"; import { Button } from "@theliaison/ui/button"; @@ -13,17 +12,18 @@ import { FormMessage, } from "@theliaison/ui/form"; import { Input } from "@theliaison/ui/input"; -import Link from "next/link"; -import { useForm } from "react-hook-form"; -import { toast } from "sonner"; -import type { z } from "zod"; -import { useServerAction } from "zsa-react"; import { ChevronRightIcon, EyeIcon, EyeOffIcon, LoaderCircleIcon, } from "lucide-react"; +import Link from "next/link"; +import React from "react"; +import { useForm } from "react-hook-form"; +import { toast } from "sonner"; +import type { z } from "zod"; +import { useServerAction } from "zsa-react"; import { signUpAction } from "~/components/auth/actions"; import { signUpSchema } from "~/lib/validators/auth"; diff --git a/apps/gifting-concierge/src/app/(dashboard)/_components/nav-item.tsx b/apps/gifting-concierge/src/app/(dashboard)/_components/nav-item.tsx index 0cdc4b4..6b49b54 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/_components/nav-item.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/_components/nav-item.tsx @@ -1,13 +1,13 @@ "use client"; -import Link from "next/link"; -import { usePathname } from "next/navigation"; import { cn } from "@theliaison/ui"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@theliaison/ui/tooltip"; +import Link from "next/link"; +import { usePathname } from "next/navigation"; export function NavItem({ children, diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/customers.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/customers.tsx index b494bda..c3fd723 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/customers.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/customers.tsx @@ -1,17 +1,17 @@ import { Card, + CardContent, + CardDescription, CardHeader, CardTitle, - CardDescription, - CardContent, } from "@theliaison/ui/card"; import { Table, - TableHeader, - TableRow, - TableHead, TableBody, TableCell, + TableHead, + TableHeader, + TableRow, } from "@theliaison/ui/table"; import type { Stripe } from "stripe"; diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/page.tsx index 3f093bb..8bfc35f 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/customers/page.tsx @@ -5,8 +5,8 @@ import { CardHeader, CardTitle, } from "@theliaison/ui/card"; -import { Customers } from "./customers"; import { getCustomers } from "./actions"; +import { Customers } from "./customers"; export default async function CustomersPage() { const { customers } = await getCustomers(); diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/page.tsx index 893d3bb..e16d528 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/orders/page.tsx @@ -1,19 +1,19 @@ +import { Badge } from "@theliaison/ui/badge"; import { Card, + CardContent, + CardDescription, CardHeader, CardTitle, - CardDescription, - CardContent, } from "@theliaison/ui/card"; import { Table, - TableHeader, - TableRow, - TableHead, TableBody, TableCell, + TableHead, + TableHeader, + TableRow, } from "@theliaison/ui/table"; -import { Badge } from "@theliaison/ui/badge"; import { createClient } from "~/supabase/server"; export default async function Component() { diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/[product]/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/[product]/page.tsx index b7e8000..44ebd05 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/[product]/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/[product]/page.tsx @@ -1,5 +1,5 @@ -import Image from "next/image"; import { ChevronLeft, PlusCircle, Upload } from "lucide-react"; +import Image from "next/image"; import { Badge } from "@theliaison/ui/badge"; import { Button } from "@theliaison/ui/button"; diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/actions.ts b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/actions.ts index f987794..2a5cf65 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/actions.ts +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/actions.ts @@ -1,13 +1,13 @@ "use server"; import "server-only"; import { createClient as createClientAdmin } from "@supabase/supabase-js"; -import { createClient } from "~/supabase/server"; -import type Stripe from "stripe"; import type { Database, Tables, TablesInsert, } from "@theliaison/supabase/database-types"; +import type Stripe from "stripe"; +import { createClient } from "~/supabase/server"; import OpenAI from "openai"; import { env } from "~/env"; diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/create/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/create/page.tsx index aa2255b..248e42b 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/create/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/create/page.tsx @@ -1,26 +1,26 @@ "use client"; -import React from "react"; -import Image from "next/image"; import { Button } from "@theliaison/ui/button"; -import { Input } from "@theliaison/ui/input"; import { Card, + CardContent, + CardDescription, CardHeader, CardTitle, - CardDescription, - CardContent, } from "@theliaison/ui/card"; +import { Input } from "@theliaison/ui/input"; import { Label } from "@theliaison/ui/label"; -import { Textarea } from "@theliaison/ui/textarea"; import { Select, - SelectTrigger, - SelectValue, SelectContent, SelectItem, + SelectTrigger, + SelectValue, } from "@theliaison/ui/select"; +import { Textarea } from "@theliaison/ui/textarea"; import { ChevronLeftIcon, UploadIcon } from "lucide-react"; +import Image from "next/image"; +import React from "react"; import { createClient } from "~/supabase/client"; export default function CreateProduct() { diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/page.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/page.tsx index 3cc19d3..549d3f7 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/page.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/page.tsx @@ -9,9 +9,9 @@ import { } from "@theliaison/ui/dropdown-menu"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@theliaison/ui/tabs"; import { File, ListFilter, PlusCircle } from "lucide-react"; -import { ProductsTable } from "./products-table"; -import { getProducts } from "./actions"; import Link from "next/link"; +import { getProducts } from "./actions"; +import { ProductsTable } from "./products-table"; export default async function ProductsPage({ searchParams, diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/product.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/product.tsx index 90ca5d0..16e6afc 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/product.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/product.tsx @@ -1,4 +1,4 @@ -import Image from "next/image"; +import type { Tables } from "@theliaison/supabase/database-types"; import { Badge } from "@theliaison/ui/badge"; import { Button } from "@theliaison/ui/button"; import { @@ -8,9 +8,9 @@ import { DropdownMenuLabel, DropdownMenuTrigger, } from "@theliaison/ui/dropdown-menu"; -import { MoreHorizontal } from "lucide-react"; import { TableCell, TableRow } from "@theliaison/ui/table"; -import type { Tables } from "@theliaison/supabase/database-types"; +import { MoreHorizontal } from "lucide-react"; +import Image from "next/image"; type SelectProduct = Tables<"products">; diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products-table.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products-table.tsx index 52ff988..f63adf6 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products-table.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products-table.tsx @@ -1,12 +1,6 @@ "use client"; -import { - TableHead, - TableRow, - TableHeader, - TableBody, - Table, -} from "@theliaison/ui/table"; +import { Button } from "@theliaison/ui/button"; import { Card, CardContent, @@ -15,10 +9,16 @@ import { CardHeader, CardTitle, } from "@theliaison/ui/card"; -import { Product } from "./product"; -import { useRouter } from "next/navigation"; +import { + Table, + TableBody, + TableHead, + TableHeader, + TableRow, +} from "@theliaison/ui/table"; import { ChevronLeft, ChevronRight } from "lucide-react"; -import { Button } from "@theliaison/ui/button"; +import { useRouter } from "next/navigation"; +import { Product } from "./product"; export function ProductsTable({ products, diff --git a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products.tsx b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products.tsx index 87546d9..3897724 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/dashboard/products/products.tsx @@ -1,3 +1,12 @@ +import { Badge } from "@theliaison/ui/badge"; +import { Button } from "@theliaison/ui/button"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuLabel, + DropdownMenuTrigger, +} from "@theliaison/ui/dropdown-menu"; import { Table, TableBody, @@ -6,17 +15,8 @@ import { TableHeader, TableRow, } from "@theliaison/ui/table"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuTrigger, -} from "@theliaison/ui/dropdown-menu"; -import Image from "next/image"; -import { Badge } from "@theliaison/ui/badge"; -import { Button } from "@theliaison/ui/button"; import { MoreHorizontal } from "lucide-react"; +import Image from "next/image"; export function Products() { return ( diff --git a/apps/gifting-concierge/src/app/(dashboard)/layout.tsx b/apps/gifting-concierge/src/app/(dashboard)/layout.tsx index b6bb05c..da860cd 100644 --- a/apps/gifting-concierge/src/app/(dashboard)/layout.tsx +++ b/apps/gifting-concierge/src/app/(dashboard)/layout.tsx @@ -1,9 +1,18 @@ +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbLink, + BreadcrumbList, + BreadcrumbPage, + BreadcrumbSeparator, +} from "@theliaison/ui/breadcrumb"; +import { Button } from "@theliaison/ui/button"; +import { Sheet, SheetContent, SheetTrigger } from "@theliaison/ui/sheet"; import { Tooltip, TooltipContent, TooltipTrigger, } from "@theliaison/ui/tooltip"; -import { Sheet, SheetContent, SheetTrigger } from "@theliaison/ui/sheet"; import { Home, LineChart, @@ -15,15 +24,6 @@ import { Users2, } from "lucide-react"; import Link from "next/link"; -import { Button } from "@theliaison/ui/button"; -import { - Breadcrumb, - BreadcrumbItem, - BreadcrumbLink, - BreadcrumbList, - BreadcrumbPage, - BreadcrumbSeparator, -} from "@theliaison/ui/breadcrumb"; import { NavItem } from "./_components/nav-item"; import { Providers } from "./_components/providers"; diff --git a/apps/gifting-concierge/src/app/(send)/send-gift/actions.tsx b/apps/gifting-concierge/src/app/(send)/send-gift/actions.tsx index 750e08c..f3c569d 100644 --- a/apps/gifting-concierge/src/app/(send)/send-gift/actions.tsx +++ b/apps/gifting-concierge/src/app/(send)/send-gift/actions.tsx @@ -1,9 +1,9 @@ "use server"; import { redirect } from "next/navigation"; -import { createClient } from "~/supabase/server"; -import { ZSAError, createServerAction } from "zsa"; import { z } from "zod"; +import { ZSAError, createServerAction } from "zsa"; +import { createClient } from "~/supabase/server"; interface InsertGift { recipient_name: string; diff --git a/apps/gifting-concierge/src/app/confirm/layout.tsx b/apps/gifting-concierge/src/app/confirm/layout.tsx index 8479212..46862e9 100644 --- a/apps/gifting-concierge/src/app/confirm/layout.tsx +++ b/apps/gifting-concierge/src/app/confirm/layout.tsx @@ -1,8 +1,8 @@ import type { Metadata } from "next"; +import { Gradient } from "~/components/gradient"; import { QuotesRotate } from "~/components/quotes-rotate"; import { Footer } from "../components/footer"; import { Header } from "./[giftId]/header"; -import { Gradient } from "~/components/gradient"; export const metadata: Metadata = { title: "Someone special wants to send you a gift! - The Liaison", diff --git a/apps/gifting-concierge/src/app/page.tsx b/apps/gifting-concierge/src/app/page.tsx index e041358..675f499 100644 --- a/apps/gifting-concierge/src/app/page.tsx +++ b/apps/gifting-concierge/src/app/page.tsx @@ -1,8 +1,8 @@ +import { Gradient } from "~/components/gradient"; import { Header } from "~/components/header"; import { QuotesRotate } from "~/components/quotes-rotate"; import { Footer } from "./components/footer"; import { Hero } from "./components/hero"; -import { Gradient } from "~/components/gradient"; export default function Home() { return ( diff --git a/apps/gifting-concierge/src/components/auth/actions.ts b/apps/gifting-concierge/src/components/auth/actions.ts index d383f1f..8b07f63 100644 --- a/apps/gifting-concierge/src/components/auth/actions.ts +++ b/apps/gifting-concierge/src/components/auth/actions.ts @@ -9,8 +9,8 @@ import { z } from "zod"; import { createServerAction } from "zsa"; import SupaAuthVerifyEmail from "~/emails"; import { env } from "~/env"; -import supabaseAdmin from "~/supabase/admin"; import { simpleSignUpSchema, verifyOtpSchema } from "~/lib/validators/auth"; +import supabaseAdmin from "~/supabase/admin"; export const verifyOtp = createServerAction() .input(verifyOtpSchema) diff --git a/apps/gifting-concierge/src/components/auth/signup-form.tsx b/apps/gifting-concierge/src/components/auth/signup-form.tsx index 1898eed..e1a4c90 100644 --- a/apps/gifting-concierge/src/components/auth/signup-form.tsx +++ b/apps/gifting-concierge/src/components/auth/signup-form.tsx @@ -17,8 +17,8 @@ import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; import { useServerAction } from "zsa-react"; -import { signUpAction, verifyOtp } from "./actions"; import { RegisterForm } from "~/app/(auth)/register/register-form"; +import { signUpAction, verifyOtp } from "./actions"; const signUpSchema = z .object({ diff --git a/apps/gifting-concierge/src/components/gradient.tsx b/apps/gifting-concierge/src/components/gradient.tsx index ad8a9f8..4ce5b98 100644 --- a/apps/gifting-concierge/src/components/gradient.tsx +++ b/apps/gifting-concierge/src/components/gradient.tsx @@ -1,7 +1,7 @@ "use client"; import React from "react"; -import { ShaderGradientCanvas, ShaderGradient } from "shadergradient"; +import { ShaderGradient, ShaderGradientCanvas } from "shadergradient"; export function Gradient({ color1 = "#ff5005", diff --git a/apps/gifting-concierge/src/components/header/navigation.tsx b/apps/gifting-concierge/src/components/header/navigation.tsx index 326f7de..588d5f3 100644 --- a/apps/gifting-concierge/src/components/header/navigation.tsx +++ b/apps/gifting-concierge/src/components/header/navigation.tsx @@ -21,8 +21,8 @@ import { DropdownMenuTrigger, } from "@theliaison/ui/dropdown-menu"; import { Separator } from "@theliaison/ui/separator"; -import { createClient } from "~/supabase/server"; import { redirect } from "next/navigation"; +import { createClient } from "~/supabase/server"; const menuItemsLoggedOut = [ { diff --git a/packages/ui/package.json b/packages/ui/package.json index 2afa1e1..d8640d2 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -5,10 +5,7 @@ "type": "module", "exports": { ".": "./src/index.ts", - "./*": [ - "./src/*.tsx", - "./src/*.ts" - ], + "./*": ["./src/*.tsx", "./src/*.ts"], "./magicui": "./src/magicui/*.tsx" }, "license": "MIT", diff --git a/packages/ui/src/accordion.tsx b/packages/ui/src/accordion.tsx index a0089bd..ab60896 100644 --- a/packages/ui/src/accordion.tsx +++ b/packages/ui/src/accordion.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import * as AccordionPrimitive from "@radix-ui/react-accordion"; import { ChevronDown } from "lucide-react"; +import * as React from "react"; import { cn } from "."; diff --git a/packages/ui/src/breadcrumb.tsx b/packages/ui/src/breadcrumb.tsx index 3badf0c..a2a7aba 100644 --- a/packages/ui/src/breadcrumb.tsx +++ b/packages/ui/src/breadcrumb.tsx @@ -1,6 +1,6 @@ -import * as React from "react"; import { Slot } from "@radix-ui/react-slot"; import { ChevronRight, MoreHorizontal } from "lucide-react"; +import * as React from "react"; import { cn } from "."; diff --git a/packages/ui/src/input-otp.tsx b/packages/ui/src/input-otp.tsx index d8b1fcf..ab32a71 100644 --- a/packages/ui/src/input-otp.tsx +++ b/packages/ui/src/input-otp.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import { OTPInput, OTPInputContext } from "input-otp"; import { Dot } from "lucide-react"; +import * as React from "react"; import { cn } from "."; diff --git a/packages/ui/src/toggle-group.tsx b/packages/ui/src/toggle-group.tsx index 4c8e502..e9ef836 100644 --- a/packages/ui/src/toggle-group.tsx +++ b/packages/ui/src/toggle-group.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"; import type { VariantProps } from "class-variance-authority"; +import * as React from "react"; import { cn } from "."; import { toggleVariants } from "./toggle"; diff --git a/packages/ui/src/toggle.tsx b/packages/ui/src/toggle.tsx index 71570a8..f314b40 100644 --- a/packages/ui/src/toggle.tsx +++ b/packages/ui/src/toggle.tsx @@ -1,8 +1,8 @@ "use client"; -import * as React from "react"; import * as TogglePrimitive from "@radix-ui/react-toggle"; -import { cva, type VariantProps } from "class-variance-authority"; +import { type VariantProps, cva } from "class-variance-authority"; +import * as React from "react"; import { cn } from ".";