🐛 fix(auth): Simplify email verification code input rendering
This commit is contained in:
parent
b2e8fadaf3
commit
6f7bc37233
@ -59,36 +59,33 @@ export default function ResetForm({
|
|||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
<FormField
|
||||||
{auth?.email?.enable_verify && (
|
control={form.control}
|
||||||
<FormField
|
name='code'
|
||||||
control={form.control}
|
render={({ field }) => (
|
||||||
name='code'
|
<FormItem>
|
||||||
render={({ field }) => (
|
<FormControl>
|
||||||
<FormItem>
|
<div className='flex items-center gap-2'>
|
||||||
<FormControl>
|
<Input
|
||||||
<div className='flex items-center gap-2'>
|
disabled={loading}
|
||||||
<Input
|
placeholder='Enter code...'
|
||||||
disabled={loading}
|
type='text'
|
||||||
placeholder='Enter code...'
|
{...field}
|
||||||
type='text'
|
value={field.value as string}
|
||||||
{...field}
|
/>
|
||||||
value={field.value as string}
|
<SendCode
|
||||||
/>
|
type='email'
|
||||||
<SendCode
|
params={{
|
||||||
type='email'
|
...form.getValues(),
|
||||||
params={{
|
type: 2,
|
||||||
...form.getValues(),
|
}}
|
||||||
type: 2,
|
/>
|
||||||
}}
|
</div>
|
||||||
/>
|
</FormControl>
|
||||||
</div>
|
<FormMessage />
|
||||||
</FormControl>
|
</FormItem>
|
||||||
<FormMessage />
|
)}
|
||||||
</FormItem>
|
/>
|
||||||
)}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name='password'
|
name='password'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user