From 921833aa46dd602bd6af9fd08f5b68b69b056ec7 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sat, 7 May 2022 14:56:53 +0430 Subject: [PATCH] update App.js, src/components/ProductSalesAmount/Design2/index.js and src/components/Sidebar/SidebarMenu/index.js --- src/components/Sidebar/SidebarMenu/index.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/components/Sidebar/SidebarMenu/index.js b/src/components/Sidebar/SidebarMenu/index.js index 6b91f58..19cada2 100644 --- a/src/components/Sidebar/SidebarMenu/index.js +++ b/src/components/Sidebar/SidebarMenu/index.js @@ -1,23 +1,19 @@ // it has style inside index.scss ---> // Start Sidebar/SidebarMenu && end Sidebar/SidebarMenu import React from "react"; - -import "./index.scss"; +import Switch from "../../Switch"; import downwardArrow from "./arrow-down.svg"; import profilePic from "./profile-pic.svg"; -import element from "./element-4.svg"; -import folderOpen from "./folder-open.svg"; -import wallet from "./wallet-money.svg"; import logout from "./logout.svg"; import messageText from "./message-text.svg"; import moon from "./moon.svg"; import sms from "./sms.svg"; -import userEdit from "./user-edit.svg"; -import Switch from "../../Switch"; + const COMPONENTS = { Switch: , }; + const SidebarMenu = ({ items, buttons }) => { return (
@@ -100,13 +96,13 @@ export default SidebarMenu; SidebarMenu.defaultProps = { items: [ { - icon: "/images/logo192.png", + icon: "/images/element-4.svg", title: "داشبورد مدیریت", notification: null, subItems: [], }, { - icon: folderOpen, + icon: "/images/folder-open.svg", title: "پروژه ها", notification: null, subItems: [ @@ -116,7 +112,7 @@ SidebarMenu.defaultProps = { ], }, { - icon: wallet, + icon: "/images/wallet-money.svg", title: "مالی و حسابداری", notification: null, subItems: [ @@ -127,13 +123,13 @@ SidebarMenu.defaultProps = { ], }, { - icon: userEdit, + icon: "/images/user-edit.svg", title: "دیدگاه ها", notification: null, subItems: [], }, { - icon: userEdit, + icon: "/images/user-edit.svg", title: "حساب کاربری", notification: null, subItems: [{ name: "ویرایش حساب کاربری", num: null }],