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} 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 />} />