From 1ddb2fd903bf1b19608dbcda4435a71a0a5b60c7 Mon Sep 17 00:00:00 2001 From: Ebube Date: Sat, 17 Feb 2024 16:27:09 +0100 Subject: [PATCH] remove mypage component from family --- src/App.jsx | 32 ++++++------- .../AuthPages/VerifyLink/index2.jsx | 2 - src/components/Partials/Header.jsx | 47 ++++++++++--------- 3 files changed, 40 insertions(+), 41 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index bb7b5d1..bb13bbc 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,22 +1,22 @@ -import Toaster from "./components/Helpers/Toaster"; -import Routers from "./Routers"; -import Default from "./components/Partials/Default"; import { Navigate, useLocation } from "react-router-dom"; +import Routers from "./Routers"; +import Toaster from "./components/Helpers/Toaster"; +import Default from "./components/Partials/Default"; function App() { - const {pathname} = useLocation() - return ( - - <> - {pathname.startsWith('/@') ? - - : - - } - - - - ); + const { pathname } = useLocation(); + return ( + + <> + {pathname.startsWith("/@") ? ( + + ) : ( + + )} + + + + ); } export default App; diff --git a/src/components/AuthPages/VerifyLink/index2.jsx b/src/components/AuthPages/VerifyLink/index2.jsx index d5a0a39..e3336b3 100644 --- a/src/components/AuthPages/VerifyLink/index2.jsx +++ b/src/components/AuthPages/VerifyLink/index2.jsx @@ -115,8 +115,6 @@ export default function VerifyLink() { debouncedEmail(token); }, []); - // ebube.ojinta+ga1@chiefsoft.com - return ( <> diff --git a/src/components/Partials/Header.jsx b/src/components/Partials/Header.jsx index 199f112..624e119 100644 --- a/src/components/Partials/Header.jsx +++ b/src/components/Partials/Header.jsx @@ -48,6 +48,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) { // 9308RDR122 + const handlerBalance = () => { setbalanceValue.toggle(); if (notificationDropdown) { @@ -238,9 +239,9 @@ export default function Header({ logoutModalHandler, sidebarHandler }) { {/* balance */} - + {/* My Page Button */} - + {userDetails.account_type === "FULL" ? : null} {/*
*/} { return ( - -
- + +
+ - - - -

My Page

- - {/* */} - -
+ + +
+

My Page

+ + {/* */} + +
- ) -} \ No newline at end of file + ); +};