From 1d673487af842fdf90beaef4eb4fabdff7e6f5dd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 8 Jun 2023 18:00:26 +0100 Subject: [PATCH] sidemenu abnormal gap closed --- src/components/Partials/MobileSideBar.jsx | 47 +++--- src/components/Partials/Sidebar.jsx | 170 +++++++++++----------- 2 files changed, 109 insertions(+), 108 deletions(-) diff --git a/src/components/Partials/MobileSideBar.jsx b/src/components/Partials/MobileSideBar.jsx index 3f29ba7..067f1cb 100644 --- a/src/components/Partials/MobileSideBar.jsx +++ b/src/components/Partials/MobileSideBar.jsx @@ -76,7 +76,7 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler, myJ {/* menu and settings item */}
{/* menus item */} -
+

Menu

@@ -110,20 +110,17 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler, myJ {/* menu and settings item */} {userDetails?.account_type !== "FAMILY" && ( - -
- {/* menus item */}
+
+

+ Family +

+
-
-

- Family -

-
-
)} {userDetails?.account_type !== "FAMILY" && ( <> {!userDetails?.post_jobs ? ( -
- {/* menus item */}
+
+

+ Job Post +

+
-
-

- Job Post -

-
-
) : myJobList?.data?.result_list?.length ? ( -
+

My Jobs @@ -213,8 +210,12 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler, myJ

- ) : !myJobList?.loading && ( -
+ ) : ( +

My Jobs diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index 9fc0ac8..e909170 100644 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -95,7 +95,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler, myJobList {/* menus item */}
@@ -131,19 +131,17 @@ export default function Sidebar({ sidebar, action, logoutModalHandler, myJobList {/* menu and settings item */} {userDetails?.account_type !== "FAMILY" && ( -
- {/* menus item */}
+
+

+ Family +

+
-
-

- Family -

-
-
)} {userDetails?.account_type !== "FAMILY" && ( <> {!userDetails?.post_jobs ? ( -
- {/* menus item */} -
-
-
-

- Job Post -

-
-
    -
  • - (navData.isActive ? "active" : ""), - sidebar - ? "justify-start space-x-3.5" - : "justify-center") +
    +
    +

    + Job Post +

    +
    +
    +
      +
    • + (navData.isActive ? "active" : ""), + sidebar + ? "justify-start space-x-3.5" + : "justify-center") + }`} + > + + + + - - - - - Enable Job Post - - -
    • -
    -
    + Enable Job Post + + +
  • +
) : myJobList?.data?.result_list?.length ? ( - <> -
-
-

- My Jobs -

-
-
-
    - {[ - { - name: "List", - path: "/myjobs", - iconName: "people-two", - }, - { - name: "Pending", - path: "/my-pending-jobs", - iconName: "people-two", - }, - { - name: "Active", - path: "/my-active-jobs", - iconName: "people-two", - }, - ].map(({ name, path, iconName }, idx) => ( - - ))} -
-
+
+
+

+ My Jobs +

- - ) : !myJobList?.loading && ( -
+
+
    + {[ + { + name: "List", + path: "/myjobs", + iconName: "people-two", + }, + { + name: "Pending", + path: "/my-pending-jobs", + iconName: "people-two", + }, + { + name: "Active", + path: "/my-active-jobs", + iconName: "people-two", + }, + ].map(({ name, path, iconName }, idx) => ( + + ))} +
+
+
+ ) : ( +

My Jobs -- 2.34.1