Skip to content

Commit

Permalink
style: biome fix
Browse files Browse the repository at this point in the history
  • Loading branch information
soyricardodev committed Jul 16, 2024
1 parent 8f557bf commit c9c041c
Show file tree
Hide file tree
Showing 33 changed files with 100 additions and 103 deletions.
6 changes: 3 additions & 3 deletions apps/gifting-concierge/src/app/(auth)/login/login-form.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions apps/gifting-concierge/src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down
4 changes: 2 additions & 2 deletions apps/gifting-concierge/src/app/(auth)/login/verify/page.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
10 changes: 5 additions & 5 deletions apps/gifting-concierge/src/app/(auth)/profile/page.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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<HTMLInputElement>(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import React from "react";

import { cn } from "@theliaison/ui";
import {
InputOTP,
InputOTPGroup,
Expand All @@ -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<
Expand Down
2 changes: 1 addition & 1 deletion apps/gifting-concierge/src/app/(auth)/register/page.tsx
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down
12 changes: 6 additions & 6 deletions apps/gifting-concierge/src/app/(auth)/register/register-form.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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">;

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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 (
Expand Down
Loading

0 comments on commit c9c041c

Please sign in to comment.