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> <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"