diff --git a/README.md b/README.md index a7e046c2e..7a151985e 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The current release has been tested and is confirmed working with the following ## Features -- NextJS version 11.1.2 +- NextJS version 12.0.7 - Connect to Woocommerce GraphQL API and list name, price and display image for products - Support for simple products and variable products - Cart handling and checkout with WooCommerce (Cash On Delivery only for now) diff --git a/components/Header/Hamburger.component.jsx b/components/Header/Hamburger.component.jsx index 314170326..b3595edcd 100644 --- a/components/Header/Hamburger.component.jsx +++ b/components/Header/Hamburger.component.jsx @@ -2,6 +2,8 @@ import { useState } from 'react'; import { useSpring, animated } from 'react-spring'; import Link from 'next/link'; +import LINKS from '../../utils/constants/LINKS'; + /** * Shows the mobile menu. * Shows a X when mobile menu is expanded. @@ -89,7 +91,6 @@ const Hamburger = () => { - {isExpanded && ( { className="absolute right-0 z-10 w-full text-center text-black bg-white " > )} diff --git a/utils/constants/LINKS.js b/utils/constants/LINKS.js new file mode 100644 index 000000000..7020f9dfe --- /dev/null +++ b/utils/constants/LINKS.js @@ -0,0 +1,20 @@ +//exports.default = [ +const LINKS = [ + { + id: 0, + title: 'Hjem', + href: '/', + }, + { + id: 1, + title: 'Produkter', + href: '/produkter', + }, + { + id: 2, + title: 'Kategorier', + href: '/kategorier', + }, +]; + +export default LINKS;