Update prettier

This commit is contained in:
2026-01-14 00:33:38 -06:00
parent 4b5c12d868
commit ce2264ef6d
58 changed files with 12945 additions and 568 deletions

View File

@@ -179,24 +179,24 @@ const SignIn = () => {
if (flow === 'email-verification') {
return (
<div className="flex flex-col items-center">
<Card className="bg-card/25 min-h-[720px] w-md p-4">
<div className='flex flex-col items-center'>
<Card className='bg-card/25 min-h-[720px] w-md p-4'>
<CardContent>
<div className="mb-6 text-center">
<h2 className="text-2xl font-bold">Verify Your Email</h2>
<p className="text-muted-foreground">We sent a code to {email}</p>
<div className='mb-6 text-center'>
<h2 className='text-2xl font-bold'>Verify Your Email</h2>
<p className='text-muted-foreground'>We sent a code to {email}</p>
</div>
<Form {...verifyEmailForm}>
<form
onSubmit={verifyEmailForm.handleSubmit(handleVerifyEmail)}
className="flex flex-col space-y-8"
className='flex flex-col space-y-8'
>
<FormField
control={verifyEmailForm.control}
name="code"
name='code'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">Code</FormLabel>
<FormLabel className='text-xl'>Code</FormLabel>
<FormControl>
<InputOTP
maxLength={6}
@@ -217,25 +217,25 @@ const SignIn = () => {
<FormDescription>
Please enter the one-time password sent to your email.
</FormDescription>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<SubmitButton
disabled={loading}
pendingText="Signing Up..."
className="mx-auto w-2/3 text-xl font-semibold"
pendingText='Signing Up...'
className='mx-auto w-2/3 text-xl font-semibold'
>
Verify Email
</SubmitButton>
</form>
</Form>
<div className="mt-4 text-center">
<div className='mt-4 text-center'>
<button
onClick={() => setFlow('signUp')}
className="text-muted-foreground text-sm hover:underline"
className='text-muted-foreground text-sm hover:underline'
>
Back to Sign Up
</button>
@@ -247,204 +247,204 @@ const SignIn = () => {
}
return (
<div className="flex flex-col items-center">
<Card className="bg-card/25 min-h-[720px] w-md p-4">
<div className='flex flex-col items-center'>
<Card className='bg-card/25 min-h-[720px] w-md p-4'>
<Tabs
defaultValue={flow}
onValueChange={(value) => setFlow(value as 'signIn' | 'signUp')}
className="items-center"
className='items-center'
>
<TabsList className="py-6">
<TabsList className='py-6'>
<TabsTrigger
value="signIn"
className="cursor-pointer p-6 text-2xl font-bold"
value='signIn'
className='cursor-pointer p-6 text-2xl font-bold'
>
Sign In
</TabsTrigger>
<TabsTrigger
value="signUp"
className="cursor-pointer p-6 text-2xl font-bold"
value='signUp'
className='cursor-pointer p-6 text-2xl font-bold'
>
Sign Up
</TabsTrigger>
</TabsList>
<TabsContent value="signIn">
<Card className="bg-card/50 min-w-xs sm:min-w-sm">
<TabsContent value='signIn'>
<Card className='bg-card/50 min-w-xs sm:min-w-sm'>
<CardContent>
<Form {...signInForm}>
<form
onSubmit={signInForm.handleSubmit(handleSignIn)}
className="flex flex-col space-y-8"
className='flex flex-col space-y-8'
>
<FormField
control={signInForm.control}
name="email"
name='email'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">Email</FormLabel>
<FormLabel className='text-xl'>Email</FormLabel>
<FormControl>
<Input
type="email"
placeholder="you@example.com"
type='email'
placeholder='you@example.com'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<FormField
control={signInForm.control}
name="password"
name='password'
render={({ field }) => (
<FormItem>
<div className="flex justify-between">
<FormLabel className="text-xl">Password</FormLabel>
<Link href="/forgot-password">
<div className='flex justify-between'>
<FormLabel className='text-xl'>Password</FormLabel>
<Link href='/forgot-password'>
Forgot Password?
</Link>
</div>
<FormControl>
<Input
type="password"
placeholder="Your password"
type='password'
placeholder='Your password'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<SubmitButton
disabled={loading}
pendingText="Signing in..."
className="mx-auto w-2/3 text-xl font-semibold"
pendingText='Signing in...'
className='mx-auto w-2/3 text-xl font-semibold'
>
Sign In
</SubmitButton>
</form>
</Form>
<div className="flex justify-center">
<div className="mx-auto my-2.5 flex w-1/4 flex-row items-center justify-center">
<Separator className="mr-3 py-0.5" />
<span className="text-lg font-semibold">or</span>
<Separator className="ml-3 py-0.5" />
<div className='flex justify-center'>
<div className='mx-auto my-2.5 flex w-1/4 flex-row items-center justify-center'>
<Separator className='mr-3 py-0.5' />
<span className='text-lg font-semibold'>or</span>
<Separator className='ml-3 py-0.5' />
</div>
</div>
<div className="mt-3 flex justify-center">
<div className='mt-3 flex justify-center'>
<GibsAuthSignInButton />
</div>
</CardContent>
</Card>
</TabsContent>
<TabsContent value="signUp">
<Card className="bg-card/50 min-w-xs sm:min-w-sm">
<TabsContent value='signUp'>
<Card className='bg-card/50 min-w-xs sm:min-w-sm'>
<CardContent>
<Form {...signUpForm}>
<form
onSubmit={signUpForm.handleSubmit(handleSignUp)}
className="flex flex-col space-y-8"
className='flex flex-col space-y-8'
>
<FormField
control={signUpForm.control}
name="name"
name='name'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">Name</FormLabel>
<FormLabel className='text-xl'>Name</FormLabel>
<FormControl>
<Input
type="text"
placeholder="Full Name"
type='text'
placeholder='Full Name'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<FormField
control={signUpForm.control}
name="email"
name='email'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">Email</FormLabel>
<FormLabel className='text-xl'>Email</FormLabel>
<FormControl>
<Input
type="email"
placeholder="you@example.com"
type='email'
placeholder='you@example.com'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<FormField
control={signUpForm.control}
name="password"
name='password'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">Password</FormLabel>
<FormLabel className='text-xl'>Password</FormLabel>
<FormControl>
<Input
type="password"
placeholder="Your password"
type='password'
placeholder='Your password'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<FormField
control={signUpForm.control}
name="confirmPassword"
name='confirmPassword'
render={({ field }) => (
<FormItem>
<FormLabel className="text-xl">
<FormLabel className='text-xl'>
Confirm Passsword
</FormLabel>
<FormControl>
<Input
type="password"
placeholder="Confirm your password"
type='password'
placeholder='Confirm your password'
{...field}
/>
</FormControl>
<div className="flex w-full flex-col items-center">
<FormMessage className="w-5/6 text-center" />
<div className='flex w-full flex-col items-center'>
<FormMessage className='w-5/6 text-center' />
</div>
</FormItem>
)}
/>
<SubmitButton
disabled={loading}
pendingText="Signing Up..."
className="mx-auto w-2/3 text-xl font-semibold"
pendingText='Signing Up...'
className='mx-auto w-2/3 text-xl font-semibold'
>
Sign Up
</SubmitButton>
</form>
</Form>
<div className="my-auto flex w-2/3 justify-center">
<div className="my-2.5 flex w-1/3 flex-row items-center">
<Separator className="mr-3 py-0.5" />
<span className="text-lg font-semibold">or</span>
<Separator className="ml-3 py-0.5" />
<div className='my-auto flex w-2/3 justify-center'>
<div className='my-2.5 flex w-1/3 flex-row items-center'>
<Separator className='mr-3 py-0.5' />
<span className='text-lg font-semibold'>or</span>
<Separator className='ml-3 py-0.5' />
</div>
</div>
<div className="mt-3 flex justify-center">
<GibsAuthSignInButton type="signUp" />
<div className='mt-3 flex justify-center'>
<GibsAuthSignInButton type='signUp' />
</div>
</CardContent>
</Card>