fix: hide invite member button from list tile for team members (#9963)

pull/9860/head
Ritik Kumar 2023-07-07 19:04:57 +05:30 committed by GitHub
parent 0969d5960a
commit c467fd41ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 10 deletions

View File

@ -285,16 +285,18 @@ export default function TeamListItem(props: Props) {
</DropdownItem>
</DropdownMenuItem>
)}
<DropdownMenuItem>
<DropdownItem
type="button"
onClick={() => {
setOpenMemberInvitationModal(true);
}}
StartIcon={Send}>
{t("invite_team_member") as string}
</DropdownItem>
</DropdownMenuItem>
{isAdmin && (
<DropdownMenuItem>
<DropdownItem
type="button"
onClick={() => {
setOpenMemberInvitationModal(true);
}}
StartIcon={Send}>
{t("invite_team_member") as string}
</DropdownItem>
</DropdownMenuItem>
)}
<DropdownMenuSeparator />
{isOwner && (
<DropdownMenuItem>