diff --git a/apps/client/src/features/app-settings/panel-list/PanelList.module.scss b/apps/client/src/features/app-settings/panel-list/PanelList.module.scss index c6a274808..6326a1576 100644 --- a/apps/client/src/features/app-settings/panel-list/PanelList.module.scss +++ b/apps/client/src/features/app-settings/panel-list/PanelList.module.scss @@ -53,10 +53,6 @@ ul { background-color: $red-400; } } - - &.split { - margin-top: 1rem; - } } .secondary { diff --git a/apps/client/src/features/app-settings/panel-list/PanelList.tsx b/apps/client/src/features/app-settings/panel-list/PanelList.tsx index c2d334d10..01dc977c0 100644 --- a/apps/client/src/features/app-settings/panel-list/PanelList.tsx +++ b/apps/client/src/features/app-settings/panel-list/PanelList.tsx @@ -42,16 +42,9 @@ interface PanelListItemProps { location?: string; } -function PanelListItem(props: PanelListItemProps) { - const { panel, isSelected, location } = props; +function PanelListItem({ panel, isSelected, location }: PanelListItemProps) { const { setLocation } = useAppSettingsNavigation(); - - const classes = cx([ - style.primary, - isSelected && style.active, - panel.split && style.split, - panel.highlight && style.highlight, - ]); + const classes = cx([style.primary, isSelected && style.active, panel.highlight && style.highlight]); return ( diff --git a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx index 90687d089..3b34468cd 100644 --- a/apps/client/src/features/app-settings/useAppSettingsMenu.tsx +++ b/apps/client/src/features/app-settings/useAppSettingsMenu.tsx @@ -7,7 +7,6 @@ export type SettingsOption = { id: string; label: string; secondary?: Readonly; - split?: boolean; highlight?: string; }; @@ -26,7 +25,6 @@ const staticOptions = [ { id: 'project', label: 'Project', - split: true, secondary: [ { id: 'project__create', label: 'Create...' }, { id: 'project__list', label: 'Manage projects' }, @@ -46,7 +44,6 @@ const staticOptions = [ { id: 'automation', label: 'Automation', - split: true, secondary: [ { id: 'automation__settings', label: 'Automation settings' }, { id: 'automation__automations', label: 'Manage automations' }, @@ -56,7 +53,6 @@ const staticOptions = [ { id: 'sharing', label: 'Sharing and reporting', - split: true, secondary: [ { id: 'sharing__presets', label: 'URL Presets' }, { @@ -69,7 +65,6 @@ const staticOptions = [ { id: 'network', label: 'Network', - split: true, secondary: [ { id: 'network__log', @@ -84,12 +79,10 @@ const staticOptions = [ { id: 'about', label: 'About', - split: true, }, { id: 'shutdown', label: 'Shutdown', - split: true, }, ] as const;