fixed Dialog action buttons (#630)

* fixed Dialog action

* added asChild
pull/632/head
Peer_Rich 2021-09-13 12:28:17 +01:00 committed by GitHub
parent d37ca84ebe
commit 8ae43ea990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -33,11 +33,11 @@ export default function ConfirmationDialogContent(props: PropsWithChildren<Confi
</div> </div>
</div> </div>
<div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-x-2"> <div className="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-x-2">
<DialogClose as={Button} color="primary" onClick={onConfirm}> <DialogClose onClick={onConfirm} asChild>
{confirmBtnText} <Button color="primary">{confirmBtnText}</Button>
</DialogClose> </DialogClose>
<DialogClose as={Button} color="secondary"> <DialogClose asChild>
{cancelBtnText} <Button color="secondary">{cancelBtnText}</Button>
</DialogClose> </DialogClose>
</div> </div>
</DialogContent> </DialogContent>