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 ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. aliquip ex ea commodo consequat.
</p> </p>
<DialogClose> <DialogFooter>
<Button <DialogClose>
onClick={(e) => { <Button
console.log(`Closed dialog: `, e.currentTarget); onClick={(e) => {
}} console.log(`Closed dialog: `, e.currentTarget);
> }}
Close Dialog >
</Button> Close Dialog
</DialogClose> </Button>
</DialogClose>
</DialogFooter>
</DialogContent> </DialogContent>
</DialogOverlay> </DialogOverlay>
</DialogRoot> </DialogRoot>