Skip to content

Commit

Permalink
refactor(console): hide switching tabs and invite button for collabor…
Browse files Browse the repository at this point in the history
…ators (#5654)
  • Loading branch information
charIeszhao authored Apr 9, 2024
1 parent 9482a9c commit 557f955
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions packages/console/src/pages/TenantSettings/TenantMembers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ function TenantMembers() {
className={styles.chargeNotification}
checkedFlagKey="tenantMember"
/>
<div className={styles.tabButtons}>
<Button
className={classNames(styles.button, !isInvitationTab && styles.active)}
icon={<MembersIcon />}
title="tenant_members.members"
onClick={() => {
navigate('.');
}}
/>
{canInviteMember && (
{canInviteMember && (
<div className={styles.tabButtons}>
<Button
className={classNames(styles.button, !isInvitationTab && styles.active)}
icon={<MembersIcon />}
title="tenant_members.members"
onClick={() => {
navigate('.');
}}
/>
<Button
className={classNames(styles.button, isInvitationTab && styles.active)}
icon={<InvitationIcon />}
Expand All @@ -68,9 +68,7 @@ function TenantMembers() {
navigate('invitations');
}}
/>
)}
<Spacer />
{canInviteMember && (
<Spacer />
<Button
type="primary"
size="large"
Expand All @@ -80,8 +78,8 @@ function TenantMembers() {
setShowInviteModal(true);
}}
/>
)}
</div>
</div>
)}
<Routes>
<Route path="*" element={<NotFound />} />
<Route index element={<Members />} />
Expand Down

0 comments on commit 557f955

Please sign in to comment.