Skip to content

Commit

Permalink
last last
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshpatel2434 committed Jul 2, 2024
1 parent dd1a698 commit f4921ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/Components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const Navbar = () => {
AppContext
) as Context;
const navigate = useNavigate();
const [search, setSearch] = useState("");
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);

const handleKey = (e: React.KeyboardEvent<HTMLInputElement>) => {
Expand All @@ -26,7 +25,7 @@ const Navbar = () => {
};

const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setSearch(e.target.value);
console.log(e);
};

const searchFurniture = () => {
Expand Down Expand Up @@ -115,7 +114,7 @@ const Navbar = () => {
onKeyDown={handleKey}
/>
<button
onClick={() => searchFurniture(search)}
onClick={() => searchFurniture()}
className="bg-blue-700 h-10 w-16 flex items-center justify-center border-2 border-gray-600 rounded-r-lg"
>
<IoSearch size={24} className="text-white" />
Expand Down

0 comments on commit f4921ab

Please sign in to comment.