diff --git a/src/App.js b/src/App.js index 30e0831..5af4f85 100644 --- a/src/App.js +++ b/src/App.js @@ -165,7 +165,7 @@ function App() { {/* */} - + {/* */} {/* */} {/* */} diff --git a/src/components/Sidebar/SidebarMenu/index.js b/src/components/Sidebar/SidebarMenu/index.js index 258ba01..9cd6fd7 100644 --- a/src/components/Sidebar/SidebarMenu/index.js +++ b/src/components/Sidebar/SidebarMenu/index.js @@ -19,29 +19,23 @@ import Switch from "../../Switch"; const SidebarMenu = ({ items, buttons }) => { return (
-
+
{/* profile */}
-

+

کامران کوهستانی شیرازی

- + arrow
{/* divider */} -
-

منوی کاربری

+
+

منوی کاربری

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

{item.title}

{item.notification && ( @@ -85,7 +79,7 @@ const SidebarMenu = ({ items, buttons }) => {

{button.title}

- {button.leftIcon && } + {button.leftIcon}
))} @@ -156,7 +150,7 @@ SidebarMenu.defaultProps = { ], buttons: [ - { icon: moon, title: "حالت شب", leftIcon: moon }, + { icon: moon, title: "حالت شب", leftIcon: }, { icon: logout, title: "خروج از حساب کاربری", leftIcon: null }, ], };