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,6 +50,7 @@ function TenantMembers() {
className={styles.chargeNotification}
checkedFlagKey="tenantMember"
/>
{canInviteMember && (
<div className={styles.tabButtons}>
<Button
className={classNames(styles.button, !isInvitationTab && styles.active)}
@ -59,7 +60,6 @@ function TenantMembers() {
navigate('.');
}}
/>
{canInviteMember && (
<Button
className={classNames(styles.button, isInvitationTab && styles.active)}
icon={<InvitationIcon />}
@ -68,9 +68,7 @@ function TenantMembers() {
navigate('invitations');
}}
/>
)}
<Spacer />
{canInviteMember && (
<Button
type="primary"
size="large"
@ -80,8 +78,8 @@ function TenantMembers() {
setShowInviteModal(true);
}}
/>
)}
</div>
)}
<Routes>
<Route path="*" element={<NotFound />} />
<Route index element={<Members />} />