MCPcopy Create free account
hub / github.com/GreatStackDev/gocart / handleSearch

Function handleSearch

components/Navbar.jsx:15–18  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

13 const cartCount = useSelector(state => state.cart.total)
14
15 const handleSearch = (e) => {
16 e.preventDefault()
17 router.push(`/shop?search=${search}`)
18 }
19
20 return (
21 <nav className="relative bg-white">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected