🛂 Hide workspace members list from guest
This commit is contained in:
@ -119,16 +119,18 @@ export const WorkspaceSettingsModal = ({
|
|||||||
{t('workspace.settings.modal.menu.settings.label')}
|
{t('workspace.settings.modal.menu.settings.label')}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
{currentRole !== WorkspaceRole.GUEST && (
|
||||||
variant={selectedTab === 'members' ? 'solid' : 'ghost'}
|
<Button
|
||||||
onClick={() => setSelectedTab('members')}
|
variant={selectedTab === 'members' ? 'solid' : 'ghost'}
|
||||||
leftIcon={<UsersIcon />}
|
onClick={() => setSelectedTab('members')}
|
||||||
size="sm"
|
leftIcon={<UsersIcon />}
|
||||||
justifyContent="flex-start"
|
size="sm"
|
||||||
pl="4"
|
justifyContent="flex-start"
|
||||||
>
|
pl="4"
|
||||||
{t('workspace.settings.modal.menu.members.label')}
|
>
|
||||||
</Button>
|
{t('workspace.settings.modal.menu.members.label')}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
{canEditWorkspace && (
|
{canEditWorkspace && (
|
||||||
<Button
|
<Button
|
||||||
variant={selectedTab === 'billing' ? 'solid' : 'ghost'}
|
variant={selectedTab === 'billing' ? 'solid' : 'ghost'}
|
||||||
|
Reference in New Issue
Block a user