0
Fork 0
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:
Charles Zhao 2024-04-09 17:27:53 +08:00 committed by GitHub
parent 9482a9c901
commit 557f95564a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 />}
@ -68,9 +68,7 @@ function TenantMembers() {
navigate('invitations');
}}
/>
)}
<Spacer />
{canInviteMember && (
<Spacer />
<Button
type="primary"
size="large"
@ -80,8 +78,8 @@ function TenantMembers() {
setShowInviteModal(true);
}}
/>
)}
</div>
</div>
)}
<Routes>
<Route path="*" element={<NotFound />} />
<Route index element={<Members />} />