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,6 +285,7 @@ export default function TeamListItem(props: Props) {
</DropdownItem>
</DropdownMenuItem>
)}
{isAdmin && (
<DropdownMenuItem>
<DropdownItem
type="button"
@ -295,6 +296,7 @@ export default function TeamListItem(props: Props) {
{t("invite_team_member") as string}
</DropdownItem>
</DropdownMenuItem>
)}
<DropdownMenuSeparator />
{isOwner && (
<DropdownMenuItem>