mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-25 21:01:54 +08:00
🚸 Remove write domain options for workspace guests
This commit is contained in:
parent
39c9033c69
commit
9b1a564b33
@ -99,20 +99,24 @@ export const CustomDomainsDropdown = ({
|
||||
className="justify-between"
|
||||
>
|
||||
{customDomain.name}
|
||||
<Button
|
||||
aria-label={t("customDomain.remove")}
|
||||
size="icon"
|
||||
onClick={handleDeleteDomainClick(customDomain.name)}
|
||||
disabled={isDeleting === customDomain.name}
|
||||
>
|
||||
<TrashIcon />
|
||||
</Button>
|
||||
{currentUserMode === "write" && (
|
||||
<Button
|
||||
aria-label={t("customDomain.remove")}
|
||||
size="icon"
|
||||
onClick={handleDeleteDomainClick(customDomain.name)}
|
||||
disabled={isDeleting === customDomain.name}
|
||||
>
|
||||
<TrashIcon />
|
||||
</Button>
|
||||
)}
|
||||
</Menu.Item>
|
||||
))}
|
||||
<Menu.Item onClick={onOpen}>
|
||||
<PlusIcon />
|
||||
{t("connectNew")}
|
||||
</Menu.Item>
|
||||
{currentUserMode === "write" && (
|
||||
<Menu.Item onClick={onOpen}>
|
||||
<PlusIcon />
|
||||
{t("connectNew")}
|
||||
</Menu.Item>
|
||||
)}
|
||||
</Stack>
|
||||
</Menu.Popup>
|
||||
</Menu.Root>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user