@@ -148,6 +149,7 @@ const AuthenticatedApp = () => {
} />
} />
+ } />
diff --git a/src/layouts/AdminLayout.jsx b/src/layouts/AdminLayout.jsx
index 1600d95..e589c8f 100644
--- a/src/layouts/AdminLayout.jsx
+++ b/src/layouts/AdminLayout.jsx
@@ -3,7 +3,7 @@ import { Link, Outlet, useLocation, useNavigate } from 'react-router-dom';
import { motion } from 'framer-motion';
import {
Activity, Bell, Bike, Car, ChevronDown, Coins, FileSpreadsheet,
- FileText, IndianRupee, ListTodo, LogOut, Menu, Search, Settings, Shield,
+ FileText, ListTodo, LogOut, Menu, Search, Settings, Shield,
ShieldAlert, User, UserCheck, Users, Warehouse,
} from 'lucide-react';
import { cn } from '@/lib/utils';
@@ -79,27 +79,6 @@ const NAV_GROUPS = [
},
];
-/* Configuration destinations, kept off the operations bar.
- *
- * Declared here rather than written inline in the account dropdown because
- * two surfaces need them: that dropdown on desktop, and the mobile sheet.
- * When they lived only in the dropdown's JSX, moving them off the bar quietly
- * removed them from the phone entirely — the sheet builds its list from NAV
- * plus NAV_GROUPS, and these were in neither. Both pages stayed routed and
- * reachable by typed URL, which is the kind of gap nobody reports and nobody
- * finds.
- *
- * (This replaces an ALL_DESTINATIONS constant that flattened NAV and
- * NAV_GROUPS. Its comment claimed it was "what the mobile sheet renders"; the
- * sheet had moved to a role-filtered local of the same name in lower case, so
- * the constant had no readers at all and would have reintroduced the same
- * omission if anyone had trusted it.)
- */
-const SETTINGS_NAV = [
- { label: 'Pricing Matrix', path: '/doormile/pricing', icon: IndianRupee },
- { label: 'Customers Directory', path: '/doormile/customers', icon: Users },
-];
-
function GlobalSearch() {
const navigate = useNavigate();
const [query, setQuery] = useState('');
@@ -492,18 +471,15 @@ export default function AdminLayout() {
Change password
-
- Settings
-
- {SETTINGS_NAV.map((item) => (
- navigate(item.path)}
- className="cursor-pointer rounded-xl px-2.5 py-2 font-medium"
- >
- {item.label}
-
- ))}
+ navigate('/doormile/settings')}
+ className={cn(
+ 'cursor-pointer rounded-xl px-2.5 py-2 font-medium',
+ location.pathname.startsWith('/doormile/settings') && 'bg-brand-tint text-brand font-semibold'
+ )}
+ >
+ Settings
+ logout()}
@@ -552,22 +528,16 @@ export default function AdminLayout() {
Without this block they existed on the bar's dropdown only, so
a phone could not reach Pricing or Customers at all. */}
-