diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index 420d943..ece71a6 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -4,7 +4,7 @@ import { FiSearch, FiX } from 'react-icons/fi'; import { useAuth } from '../context/AuthContext'; export const Navbar = () => { - const { user } = useAuth(); // Get user from context + const { user } = useAuth(); const navigate = useNavigate(); const [showSearch, setShowSearch] = useState(false); @@ -14,7 +14,7 @@ export const Navbar = () => { const handleProfileClick = () => navigate('/profile'); const toggleSearch = () => { - setShowSearch(!showSearch); + setShowSearch((prev) => !prev); setInputValue(""); }; @@ -26,78 +26,102 @@ export const Navbar = () => { } }; - - return ( - - {/* Auth */} - {user ? ( - - ) : ( - - )} + {/* Mobile Navigation Links */} +
+ + Home + + + About Us + + + Watch-list +
- - - + ); -}; \ No newline at end of file +};