website refactor

This commit is contained in:
2026-01-18 16:43:32 +01:00
parent 13567d51af
commit b263de3a35
418 changed files with 1986 additions and 2161 deletions

View File

@@ -1,28 +1,28 @@
'use client';
import React, { useEffect, useMemo, useState } from 'react';
import { AnimatePresence, motion } from 'framer-motion';
import {
BarChart3,
ChevronDown,
CreditCard,
Handshake,
LogOut,
Megaphone,
Paintbrush,
Settings,
Shield
} from 'lucide-react';
import { useAuth } from '@/components/auth/AuthContext';
import { useEffectiveDriverId } from '@/hooks/useEffectiveDriverId';
import { DriverViewModel as DriverViewModelClass } from '@/lib/view-models/DriverViewModel';
import { useFindDriverById } from '@/hooks/driver/useFindDriverById';
import { useEffectiveDriverId } from '@/hooks/useEffectiveDriverId';
import { routes } from '@/lib/routing/RouteConfig';
import { Box } from '@/ui/Box';
import { Text } from '@/ui/Text';
import { DriverViewModel as DriverViewModelClass } from '@/lib/view-models/DriverViewModel';
import { Icon } from '@/ui/Icon';
import { Link } from '@/ui/Link';
import { Image } from '@/ui/Image';
import { Link } from '@/ui/Link';
import { Box } from '@/ui/primitives/Box';
import { Text } from '@/ui/Text';
import { AnimatePresence, motion } from 'framer-motion';
import {
BarChart3,
ChevronDown,
CreditCard,
Handshake,
LogOut,
Megaphone,
Paintbrush,
Settings,
Shield
} from 'lucide-react';
import { useEffect, useMemo, useState } from 'react';
// Hook to detect demo user mode based on session
function useDemoUserMode(): { isDemo: boolean; demoRole: string | null } {