From 63e11652817d7bf91b5460fc2d190c353ac1952e Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Sat, 29 Jan 2022 13:29:18 +0330 Subject: [PATCH] Navigation Bar Links Linked --- src/components/Navbar/index.js | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/components/Navbar/index.js b/src/components/Navbar/index.js index 96ac81d..22caa12 100644 --- a/src/components/Navbar/index.js +++ b/src/components/Navbar/index.js @@ -211,7 +211,7 @@ function Navbar({ ) : (
-
+
انتخاب کشور @@ -232,7 +232,7 @@ function Navbar({ desktopMiddleFix ? "" : "" }`} > -
+
- {menuItems.map((item, index) => ( + {/* {menuItems.map((item, index) => ( {item} - ))} + ))} */} + + { + pages.map((item, index) => ( + + {item.name} + + )) + }
@@ -312,6 +320,10 @@ export default connect(mapStateToProps, {})(Navbar); Navbar.defaultProps = { pages: [ + { + link: '/', + name: 'خانه' + }, { link: "/products", name: "محصولات",