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
parent
ab78bb3802
commit
d37ca84ebe
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue