+
{count > 0 && (
-
-
+
-
{children}
+ {/* Sidebar */}
+
+
+ {/* Main content */}
+
+ );
+}
diff --git a/src/features/settings/Settings.tsx b/src/features/settings/Settings.tsx
index ef19496..a1cff80 100644
--- a/src/features/settings/Settings.tsx
+++ b/src/features/settings/Settings.tsx
@@ -5,6 +5,8 @@ import { NavLink, Outlet } from 'react-router';
import { SETTINGS_TABS } from '~/features/settings/settingsTabs.tsx';
import { MdOutlineSettingsBackupRestore } from 'react-icons/md';
import { toast } from 'react-toastify';
+import { ResponsiveNav } from '../nav/ResponsiveNav';
+import classNames from 'classnames';
export function Settings() {
const dispatch = useAppDispatch();
@@ -25,23 +27,37 @@ export function Settings() {
};
const isSettingsNotSaved = useAppSelector(selectIsSettingsNotSaved);
+ const tabClassNames = ({ isActive }: { isActive: boolean }) =>
+ classNames(
+ 'link inline-flex text-nowrap mb-[-2px] no-underline w-full',
+ 'border-b-2 md:border-b-0 md:border-r-2',
+ 'tab md:grow',
+ {
+ 'tab-active bg-accent/10 border-accent': isActive,
+ },
+ );
+
return (
{children}
+
-
-
+
-
- {Object.entries(SETTINGS_TABS).map(([id, { name }]) => (
-
- {name}
-
- ))}
-
-
- {/* TODO: ensure this flex div does not overflow */}
-
+
+ {Object.entries(SETTINGS_TABS).map(([id, { name }]) => (
+
+ {name}
+
+ ))}
+
+ }
+ >