From f11c1a632c530670dfb40bbc5300613576ed8984 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 3 May 2022 20:43:49 +0430 Subject: [PATCH] update App.js, src/components/ProductStatusCard/index.js and src/components/Sidebar/SidebarMenu/index.js --- src/components/ProductStatusCard/index.js | 12 +++++++----- src/components/Sidebar/SidebarMenu/index.js | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/ProductStatusCard/index.js b/src/components/ProductStatusCard/index.js index ef517cc..c174097 100644 --- a/src/components/ProductStatusCard/index.js +++ b/src/components/ProductStatusCard/index.js @@ -14,11 +14,11 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => { return (
-
+
{items.map((item, index) => ( -
+ <>
@@ -40,8 +40,10 @@ const ProductStatusCard = ({ items, productPrice, discountPrice }) => {
{item.alertIcon && }
-
-
+ {Number(index) !== items.length - 1 && ( +
+ )} + ))}

diff --git a/src/components/Sidebar/SidebarMenu/index.js b/src/components/Sidebar/SidebarMenu/index.js index d7d8c35..91cc0eb 100644 --- a/src/components/Sidebar/SidebarMenu/index.js +++ b/src/components/Sidebar/SidebarMenu/index.js @@ -154,6 +154,7 @@ SidebarMenu.defaultProps = { subItems: [{ name: "API توسعه دهندگان", num: null }], }, ], + buttons: [ { icon: moon, title: "حالت شب", leftIcon: moon }, { icon: logout, title: "خروج از حساب کاربری", leftIcon: null },