fix: add DialogClose in Dialog withCloseOnClick story

This commit is contained in:
p-sw 2024-05-21 10:29:27 +09:00
parent 9493fb8857
commit 208699743f

View File

@ -85,15 +85,17 @@ export const WithCloseOnClick = () => {
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
</p>
<DialogClose>
<Button
onClick={(e) => {
console.log(`Closed dialog: `, e.currentTarget);
}}
>
Close Dialog
</Button>
</DialogClose>
<DialogFooter>
<DialogClose>
<Button
onClick={(e) => {
console.log(`Closed dialog: `, e.currentTarget);
}}
>
Close Dialog
</Button>
</DialogClose>
</DialogFooter>
</DialogContent>
</DialogOverlay>
</DialogRoot>