fix: use dropdown item (#8024)
parent
19e830acad
commit
ab7ecff580
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue