Skip to content

Commit 5b11d59

Browse files
committed
feat: removed mobile hamburger menu and overlay
1 parent 257c043 commit 5b11d59

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

frontend/src/components/Navigation.jsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { Link, useLocation } from 'react-router-dom';
2-
import { LayoutDashboard, Wallet, Menu, X } from 'lucide-react';
3-
import { useState } from 'react';
2+
import { LayoutDashboard, Wallet } from 'lucide-react';
43

54
export default function Navigation({ account, connect }) {
65
const location = useLocation();
7-
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
86

97
const isActive = (path) => location.pathname === path;
108

@@ -58,26 +56,9 @@ export default function Navigation({ account, connect }) {
5856
: "Connect Wallet"
5957
}
6058
</button>
61-
62-
{/* Mobile Menu Toggle */}
63-
<button className="mobile-only" onClick={() => setIsMobileMenuOpen(!isMobileMenuOpen)} style={{ background: 'none', color: 'white' }}>
64-
{isMobileMenuOpen ? <X /> : <Menu />}
65-
</button>
6659
</div>
6760
</div>
6861

69-
{/* Mobile Menu Overlay (Simple) */}
70-
{isMobileMenuOpen && (
71-
<div style={{
72-
position: 'absolute', top: '70px', left: '0', right: '0',
73-
background: '#111', padding: '2rem',
74-
borderBottom: '1px solid #333',
75-
display: 'flex', flexDirection: 'column', gap: '1.5rem'
76-
}}>
77-
<Link to="/business" onClick={() => setIsMobileMenuOpen(false)} style={{ color: 'white' }}>For Business</Link>
78-
<Link to="/invest" onClick={() => setIsMobileMenuOpen(false)} style={{ color: 'white' }}>For Investors</Link>
79-
</div>
80-
)}
8162
</nav>
8263
);
8364
}

0 commit comments

Comments
 (0)