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