diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-03 22:54:36 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-03 22:54:36 +0100 |
| commit | 2e90c813d0cf924bb9e8b383c1202aae15b14684 (patch) | |
| tree | d7dac941a482a8f0ef82645d0ffd05e1efc68e5e /src/Layout.tsx | |
| parent | 797c5f551b1bb6ddb139704eb9e8953c3bc1a8c8 (diff) | |
Add theme provider and errorBoundary
Diffstat (limited to 'src/Layout.tsx')
| -rw-r--r-- | src/Layout.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Layout.tsx b/src/Layout.tsx index 34f5dbf..30db47b 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -1,6 +1,7 @@ import { ReactNode } from 'react'; import { Link, useLocation } from 'react-router'; import { MapPin, Map, Info } from 'lucide-react'; +import { useTheme } from './ThemeContext'; import './Layout.css'; interface LayoutProps { @@ -30,17 +31,14 @@ export function Layout({ children }: LayoutProps) { return ( <div className="app-container"> - {/* Main content area */} <main className="main-content"> {children} </main> - - {/* Android style bottom navigation bar */} <nav className="nav-bar"> {navItems.map(item => { const Icon = item.icon; const isActive = location.pathname.startsWith(item.path); - + return ( <Link key={item.name} |
