mirror of
https://github.com/diced/zipline.git
synced 2025-05-10 18:05:54 +02:00
fix: disable passkey button when it's disabled
This commit is contained in:
parent
a97decfb0c
commit
60e9b52100
1 changed files with 13 additions and 11 deletions
|
@ -296,17 +296,19 @@ export default function Login({ config }: InferGetServerSidePropsType<typeof get
|
|||
<Divider label='or' />
|
||||
)}
|
||||
|
||||
<Button
|
||||
onClick={handlePasskeyLogin}
|
||||
size='md'
|
||||
fullWidth
|
||||
variant='outline'
|
||||
leftSection={<IconKey size='1rem' />}
|
||||
color={passkeyErrored ? 'red' : undefined}
|
||||
loading={passkeyLoading}
|
||||
>
|
||||
Login with passkey
|
||||
</Button>
|
||||
{config.mfa.passkeys && (
|
||||
<Button
|
||||
onClick={handlePasskeyLogin}
|
||||
size='md'
|
||||
fullWidth
|
||||
variant='outline'
|
||||
leftSection={<IconKey size='1rem' />}
|
||||
color={passkeyErrored ? 'red' : undefined}
|
||||
loading={passkeyLoading}
|
||||
>
|
||||
Login with passkey
|
||||
</Button>
|
||||
)}
|
||||
|
||||
{config.features.userRegistration && (
|
||||
<Button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue