mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
set confirm modal to focus confirm button
This commit is contained in:
@@ -106,10 +106,16 @@ export const ConfirmModal = ({
|
||||
<Stack>
|
||||
<Flex>{children}</Flex>
|
||||
<Group justify="flex-end">
|
||||
<Button data-focus onClick={handleCancel} variant="default">
|
||||
<Button onClick={handleCancel} variant="default">
|
||||
{labels?.cancel ? labels.cancel : 'Cancel'}
|
||||
</Button>
|
||||
<Button disabled={disabled} loading={loading} onClick={onConfirm} variant="filled">
|
||||
<Button
|
||||
data-autofocus
|
||||
disabled={disabled}
|
||||
loading={loading}
|
||||
onClick={onConfirm}
|
||||
variant="filled"
|
||||
>
|
||||
{labels?.confirm ? labels.confirm : 'Confirm'}
|
||||
</Button>
|
||||
</Group>
|
||||
|
||||
Reference in New Issue
Block a user