Skip to content

Commit

Permalink
add file in gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
shabrina12 committed Jan 2, 2023
1 parent ab484fe commit 67137cc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
.env

# vercel
.vercel
16 changes: 11 additions & 5 deletions components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import Link from 'next/link'
import {RiMenu3Line, RiCloseLine } from 'react-icons/ri';
import { useStateContext } from '../context/StateContext';

const Navbar = () => {
const Navbar = ({Searchproducts}) => {
const {showCart, setShowCart, totalQty} = useStateContext();
const [toggleMenu, setToggleMenu] = useState(false);
// const [searchTerm, setSearchTerm] = useState('')

return (
<nav>
Expand All @@ -23,10 +24,15 @@ const Navbar = () => {
<Link href='/products'><li>All Products</li></Link>
</ul>

<div className='search-bar'>
<CiSearch />
<input type='text' placeholder='What you looking for'/>
</div>
<div className='search-bar'>
<CiSearch />
<input
type='text'
placeholder='What you looking for'/>
</div>
{/* onChange={(event) => {
setSearchTerm(event.target.value);
}} */}

{showCart ?
<Link href='/cart'>
Expand Down
3 changes: 2 additions & 1 deletion components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export { default as AllProducts } from './AllProducts';
export { default as FeaturesBanner } from './FeaturesBanner';
export { default as Newsletter } from './Newsletter';
export { default as Footer } from './Footer';
export { default as Layout } from './Layout';
export { default as Layout } from './Layout';
export { default as Search } from './Search';
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import {client} from '../lib/client'
import { HeroBanner, EventsBanner, Newsletter, FeaturesBanner, Product } from '../components'
import { Navigation, A11y } from 'swiper';
import { Navigation, A11y, Lazy } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';

// Import Swiper styles
Expand Down

0 comments on commit 67137cc

Please sign in to comment.