Skip to content

Commit

Permalink
🛂 Hide workspace members list from guest
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 7, 2023
1 parent e2abfc6 commit c339130
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,18 @@ export const WorkspaceSettingsModal = ({
{t('workspace.settings.modal.menu.settings.label')}
</Button>
)}
<Button
variant={selectedTab === 'members' ? 'solid' : 'ghost'}
onClick={() => setSelectedTab('members')}
leftIcon={<UsersIcon />}
size="sm"
justifyContent="flex-start"
pl="4"
>
{t('workspace.settings.modal.menu.members.label')}
</Button>
{currentRole !== WorkspaceRole.GUEST && (
<Button
variant={selectedTab === 'members' ? 'solid' : 'ghost'}
onClick={() => setSelectedTab('members')}
leftIcon={<UsersIcon />}
size="sm"
justifyContent="flex-start"
pl="4"
>
{t('workspace.settings.modal.menu.members.label')}
</Button>
)}
{canEditWorkspace && (
<Button
variant={selectedTab === 'billing' ? 'solid' : 'ghost'}
Expand Down

1 comment on commit c339130

@vercel
Copy link

@vercel vercel bot commented on c339130 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-typebot-io.vercel.app
app.typebot.io
builder-v2-git-main-typebot-io.vercel.app

Please sign in to comment.