refactor(settings): nest support section within workspace (#8937)

Refactor the settings structure to include the support section within
the workspace feature when multi-workspace is enabled. This update
provides a more consistent user interface by grouping related settings,
thereby enhancing the manageability of workspace-specific actions.

Fix #8914
This commit is contained in:
Antoine Moreaux
2024-12-06 17:58:46 +01:00
committed by GitHub
parent 6285186ead
commit 9bbb963a08

View File

@ -42,6 +42,7 @@ export const SettingsWorkspace = () => {
<NameField /> <NameField />
</Section> </Section>
{isMultiWorkspaceEnabled && ( {isMultiWorkspaceEnabled && (
<>
<Section> <Section>
<H2Title <H2Title
title="Domain" title="Domain"
@ -51,8 +52,6 @@ export const SettingsWorkspace = () => {
<SettingsCard title="Customize Domain" Icon={<IconWorld />} /> <SettingsCard title="Customize Domain" Icon={<IconWorld />} />
</UndecoratedLink> </UndecoratedLink>
</Section> </Section>
)}
<Section> <Section>
<H2Title <H2Title
title="Support" title="Support"
@ -60,6 +59,8 @@ export const SettingsWorkspace = () => {
description="Grant Twenty support temporary access to your workspace so we can troubleshoot problems or recover content on your behalf. You can revoke access at any time." description="Grant Twenty support temporary access to your workspace so we can troubleshoot problems or recover content on your behalf. You can revoke access at any time."
/> />
</Section> </Section>
</>
)}
<Section> <Section>
<DeleteWorkspace /> <DeleteWorkspace />
</Section> </Section>