diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index e4cd05d..878eea2 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -247,6 +247,12 @@ export function AppRouter({ } /> + + + + } /> + diff --git a/src/Layout.tsx b/src/Layout.tsx index 9048fdb..8416e05 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -12,7 +12,7 @@ interface LayoutProps { children: ReactNode; activeCity?: string; showCitySubmenu?: boolean; - onSignInClick: () => void; + onSignInClick?: () => void; // ✅ optional onSignOutClick?: () => void; user?: User | null; } @@ -30,25 +30,21 @@ export function Layout({ {/* Navbar */} { - // Handle city change if needed - }} - onSignInClick={onSignInClick} + onCityChange={() => {}} + onSignInClick={() => onSignInClick?.()} // ✅ safe optional call onSignOutClick={onSignOutClick} isUserSignedIn={!!user} user={user} /> - {/* City Submenu - Conditionally rendered */} + {/* City Submenu */} {showCitySubmenu && {}} />} {/* Main Content */} -
- {children} -
+
{children}
{/* Footer */}