fix: use dropdown item (#8024)
This commit is contained in:
1 parent
19e830acad
commit
ab7ecff580
1 file changed
+3
-5
@@ -278,17 +278,15 @@ export default function TeamListItem(props: Props) {
|
|||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<Dialog>
|
<Dialog>
|
||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
<Button
|
<DropdownItem
|
||||||
type="button"
|
|
||||||
color="destructive"
|
color="destructive"
|
||||||
size="lg"
|
type="button"
|
||||||
StartIcon={FiLogOut}
|
StartIcon={FiLogOut}
|
||||||
className="w-full rounded-none"
|
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}}>
|
}}>
|
||||||
{t("leave_team")}
|
{t("leave_team")}
|
||||||
</Button>
|
</DropdownItem>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<ConfirmationDialogContent
|
<ConfirmationDialogContent
|
||||||
variety="danger"
|
variety="danger"
|
||||||
|
|||||||
Reference in new issue
Block a user