File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
ecommerce-store/components Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const nextConfig = {
1919 {
2020 key : "Access-Control-Allow-Origin" ,
2121 value :
22- "https://ecommerce-project-store-phi.vercel.app/ " ,
22+ "https://ecommerce-project-store-phi.vercel.app" ,
2323 } ,
2424 {
2525 key : "Access-Control-Allow-Methods" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { Category } from "@/types";
55
66const FooterBar = async ( ) => {
77 const categories : Category [ ] = await getCategories ( ) ;
8- console . log ( categories ) ;
98
109 const helpLinks = [
1110 "SALE FAQ" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ import { Menu } from "lucide-react";
1515
1616const Navbar = ( ) => {
1717 const [ isOpen , setIsOpen ] = useState ( false ) ;
18- const [ categories , setCategories ] = useState < Category [ ] > ( [ ] ) ;
18+ const [ categories , setCategories ] = useState < Category [ ] > (
19+ [ ]
20+ ) ;
1921
2022 useEffect ( ( ) => {
2123 const fetchCategories = async ( ) => {
@@ -30,12 +32,23 @@ const Navbar = () => {
3032 < nav className = "sticky top-0 z-10 py-4 bg-white border-b-2 shadow-md border-accent/10 shadow-accent/5" >
3133 < Container >
3234 < section className = "relative flex items-center h-16 px-4 sm:px-6" >
33- < button className = "md:hidden" onClick = { ( ) => setIsOpen ( true ) } >
35+ < button
36+ className = "md:hidden"
37+ onClick = { ( ) => setIsOpen ( true ) }
38+ >
3439 < Menu />
3540 </ button >
3641 < ul className = "w-full px-3 py-2 text-xl font-bold md:w-1/3 lg:w-1/5" >
37- < Link href = "/" className = "flex ml-r lg:ml-0 gap-x-2" >
38- < Image src = { logo } alt = "logo" height = { 36 } width = { 150 } />
42+ < Link
43+ href = "/"
44+ className = "flex ml-r lg:ml-0 gap-x-2"
45+ >
46+ < Image
47+ src = { logo }
48+ alt = "logo"
49+ height = { 36 }
50+ width = { 150 }
51+ />
3952 </ Link >
4053 </ ul >
4154
You can’t perform that action at this time.
0 commit comments