Skip to content

Commit

Permalink
fix(confirmation-alert-dialog): use rest props correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Oct 10, 2024
1 parent 5e7d113 commit 4c455f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/alert-dialog/confirmation-alert-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const ConfirmationAlertDialog = typedMemo((props: ConfirmationAlertDialog
title,
isOpen,
onClose,
...rest
} = props;

const cancelRef = useRef<HTMLButtonElement | null>(null);
Expand All @@ -56,7 +57,7 @@ export const ConfirmationAlertDialog = typedMemo((props: ConfirmationAlertDialog
}, [cancelCallback, onClose]);

return (
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose} isCentered>
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose} isCentered {...rest}>
<AlertDialogOverlay>
<AlertDialogContent>
<AlertDialogHeader fontSize="lg" fontWeight="bold">
Expand Down

0 comments on commit 4c455f0

Please sign in to comment.