diff --git a/src/containers/UserSettings/UserSettings.tsx b/src/containers/UserSettings/UserSettings.tsx index dd5cac5ee..240b09c84 100644 --- a/src/containers/UserSettings/UserSettings.tsx +++ b/src/containers/UserSettings/UserSettings.tsx @@ -11,7 +11,7 @@ export const UserSettings = ({settings: userSettings}: UserSettingsProps) => { return ( {userSettings.map((page) => { - const {id, title, icon, sections = []} = page; + const {id, title, icon, sections = [], showTitle} = page; return ( @@ -19,7 +19,11 @@ export const UserSettings = ({settings: userSettings}: UserSettingsProps) => { const {title: sectionTitle, settings: sectionSettings = []} = section; return ( - + {sectionSettings.map((setting) => { if (setting.type === 'info') { return ( diff --git a/src/containers/UserSettings/settings.tsx b/src/containers/UserSettings/settings.tsx index e29528e3e..ccd56768b 100644 --- a/src/containers/UserSettings/settings.tsx +++ b/src/containers/UserSettings/settings.tsx @@ -31,6 +31,8 @@ export interface SettingsPage { title: string; icon: IconProps; sections: SettingsSection[]; + // default true + showTitle?: false; } export type YDBEmbeddedUISettings = SettingsPage[]; @@ -155,12 +157,14 @@ export const generalPage: SettingsPage = { title: i18n('page.general'), icon: {data: StarFill, height: 14, width: 14}, sections: [appearanceSection], + showTitle: false, }; export const experimentsPage: SettingsPage = { id: 'experimentsPage', title: i18n('page.experiments'), icon: {data: Flask}, sections: [experimentsSection], + showTitle: false, }; export const editorPage: SettingsPage = { id: 'editorPage', @@ -174,6 +178,7 @@ export const aboutPage: SettingsPage = { title: i18n('page.about'), icon: {data: CircleInfo}, sections: [aboutSettingsSection], + showTitle: false, }; export function getUserSettings({singleClusterMode}: {singleClusterMode: boolean}) {