From 1a65b1daa329debeccdac6d5113f7d05ddd4ab78 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Mon, 17 Jul 2023 19:21:43 +0100 Subject: [PATCH] collapse-icon fixed, family icon fixed --- src/components/FamilyAcc/Tabs/ProfileInfo.jsx | 4 +++- src/components/Partials/Sidebar.jsx | 20 ++----------------- src/components/Resources/index.jsx | 6 ++++-- .../Resources/tabs/QuestionsTab.jsx | 2 +- 4 files changed, 10 insertions(+), 22 deletions(-) diff --git a/src/components/FamilyAcc/Tabs/ProfileInfo.jsx b/src/components/FamilyAcc/Tabs/ProfileInfo.jsx index 5f2a415..e998103 100644 --- a/src/components/FamilyAcc/Tabs/ProfileInfo.jsx +++ b/src/components/FamilyAcc/Tabs/ProfileInfo.jsx @@ -1,4 +1,6 @@ import React from "react"; +import localImgLoad from "../../../lib/localImgLoad"; + export default function ProfileInfo({ profileImg, @@ -12,7 +14,7 @@ export default function ProfileInfo({
diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index 7dfbd32..015347c 100644 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -289,24 +289,8 @@ export default function Sidebar({ type="button" className="signout-btn w-full flex items-center justify-center" > - - - - - - + + )} diff --git a/src/components/Resources/index.jsx b/src/components/Resources/index.jsx index 59dcb98..3c75ec0 100644 --- a/src/components/Resources/index.jsx +++ b/src/components/Resources/index.jsx @@ -65,8 +65,8 @@ export default function Resources(props) { if(name == 'blog'){ return blogItems?.blogdata?.length }else if(name == 'onsale'){ - // return onSaleProducts?.length - return null + return onSaleProducts?.length + // return null }else if(name == 'owned'){ return ownProducts?.length }else if(name == 'created'){ @@ -89,6 +89,7 @@ export default function Resources(props) { > {tabValue.content} + {tabValue.name != 'onsale' && {countNumber(tabValue.name)} + } ); }; diff --git a/src/components/Resources/tabs/QuestionsTab.jsx b/src/components/Resources/tabs/QuestionsTab.jsx index 6daa87d..9791028 100644 --- a/src/components/Resources/tabs/QuestionsTab.jsx +++ b/src/components/Resources/tabs/QuestionsTab.jsx @@ -12,7 +12,7 @@ export default function QuestionsTab({ className, products }) {

Ask our A.I

- AI + AI