diff --git a/build.zip b/build.zip new file mode 100644 index 0000000..5883942 Binary files /dev/null and b/build.zip differ diff --git a/src/App.js b/src/App.js index 5071fc5..7e360b7 100644 --- a/src/App.js +++ b/src/App.js @@ -73,7 +73,7 @@ function App() { {/* */} {/* */} {/* */} - {/* */} + {/* */} diff --git a/src/components/Sidebar/SidebarDesign2/index.js b/src/components/Sidebar/SidebarDesign2/index.js index 6672813..fcd7d1b 100644 --- a/src/components/Sidebar/SidebarDesign2/index.js +++ b/src/components/Sidebar/SidebarDesign2/index.js @@ -22,7 +22,7 @@ const SidebarMenu = ({ items, buttons, username, userJob }) => {
{/* profile */}
@@ -52,29 +52,57 @@ const SidebarMenu = ({ items, buttons, username, userJob }) => {

{item.title}

{/* menu items */} {item.menuItems.map((menuItem, index) => ( -
- -

- {menuItem.title} -

- {menuItem.notification && ( +
+
+ +

+ {menuItem.title} +

+ {menuItem.notification && ( +
+ + {menuItem.notification} + +
+ )} + {menuItem.leftIcon && } +
+ {menuItem.menuSubItems.map((menuSubItem, indexx) => (
- - {menuItem.notification} - +
+ - +
+
+

{menuSubItem.title}

+
- )} + ))}
))} -
))} + {/* blue left border */} +
); @@ -126,7 +154,12 @@ SidebarMenu.defaultProps = { backgroundColor: null, borderColor: null, notification: null, - menuSubItems: [], + leftIcon: downwardArrow, + menuSubItems: [ + { title: "مهدی" }, + { title: "مهدی" }, + { title: "مهدی" }, + ], }, { icon: discount, @@ -149,7 +182,7 @@ SidebarMenu.defaultProps = { ], }, { - title: "حسابداری و مالی", + title: "حساب کاربری", menuItems: [ { icon: profileIcon, @@ -188,43 +221,3 @@ SidebarMenu.defaultProps = { username: "رستم پهلوان زاده", userJob: "مدیریت سامانه هوشمند", }; - -// { -// buttons.map((button, i) => ( -//
-// {/* divider */} -//
-//
-// -//

{button.title}

-// {button.leftIcon && } -//
-//
-// )); -// } - -{ - /* sub items */ -} -{ - /* {item.subItems.map((subItem, i) => ( -
- {subItem.name && ( -

- {subItem.name} -

- )} - {subItem.num && ( -
- {subItem.num} -
- )} -
- ))} */ -}