fixed "Disband Team" Button (likely Radix upgrade) (#631)

* applied same fix for as={Button}, likely radix upgrade bug

* using asChild to prevent <button><button></button></button>
pull/632/head
Peer_Rich 2021-09-13 12:26:08 +01:00 committed by GitHub
parent ab78bb3802
commit d37ca84ebe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -137,15 +137,16 @@ export default function TeamListItem(props: {
</li>
<li className="text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900" role="menuitem">
<Dialog>
<DialogTrigger
as={Button}
onClick={(e) => {
e.stopPropagation();
}}
color="warn"
StartIcon={TrashIcon}
className="w-full">
Disband Team
<DialogTrigger asChild>
<Button
onClick={(e) => {
e.stopPropagation();
}}
color="warn"
StartIcon={TrashIcon}
className="w-full">
Disband Team
</Button>
</DialogTrigger>
<ConfirmationDialogContent
variety="danger"