fix: use dropdown item (#8024)

pull/8030/head^2
Nafees Nazik 2023-04-02 15:33:40 +05:30 committed by GitHub
parent 19e830acad
commit ab7ecff580
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -278,17 +278,15 @@ export default function TeamListItem(props: Props) {
<DropdownMenuItem>
<Dialog>
<DialogTrigger asChild>
<Button
type="button"
<DropdownItem
color="destructive"
size="lg"
type="button"
StartIcon={FiLogOut}
className="w-full rounded-none"
onClick={(e) => {
e.stopPropagation();
}}>
{t("leave_team")}
</Button>
</DropdownItem>
</DialogTrigger>
<ConfirmationDialogContent
variety="danger"