mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(console): hide switching tabs and invite button for collaborators (#5654)
This commit is contained in:
parent
9482a9c901
commit
557f95564a
1 changed files with 13 additions and 15 deletions
|
@ -50,6 +50,7 @@ function TenantMembers() {
|
||||||
className={styles.chargeNotification}
|
className={styles.chargeNotification}
|
||||||
checkedFlagKey="tenantMember"
|
checkedFlagKey="tenantMember"
|
||||||
/>
|
/>
|
||||||
|
{canInviteMember && (
|
||||||
<div className={styles.tabButtons}>
|
<div className={styles.tabButtons}>
|
||||||
<Button
|
<Button
|
||||||
className={classNames(styles.button, !isInvitationTab && styles.active)}
|
className={classNames(styles.button, !isInvitationTab && styles.active)}
|
||||||
|
@ -59,7 +60,6 @@ function TenantMembers() {
|
||||||
navigate('.');
|
navigate('.');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{canInviteMember && (
|
|
||||||
<Button
|
<Button
|
||||||
className={classNames(styles.button, isInvitationTab && styles.active)}
|
className={classNames(styles.button, isInvitationTab && styles.active)}
|
||||||
icon={<InvitationIcon />}
|
icon={<InvitationIcon />}
|
||||||
|
@ -68,9 +68,7 @@ function TenantMembers() {
|
||||||
navigate('invitations');
|
navigate('invitations');
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
{canInviteMember && (
|
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
size="large"
|
size="large"
|
||||||
|
@ -80,8 +78,8 @@ function TenantMembers() {
|
||||||
setShowInviteModal(true);
|
setShowInviteModal(true);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="*" element={<NotFound />} />
|
<Route path="*" element={<NotFound />} />
|
||||||
<Route index element={<Members />} />
|
<Route index element={<Members />} />
|
||||||
|
|
Loading…
Reference in a new issue