remove mypage component from family

This commit was merged in pull request #569.
This commit is contained in:
2024-02-17 16:27:09 +01:00
parent 70f6ac4e24
commit 1ddb2fd903
3 changed files with 40 additions and 41 deletions
+7 -7
View File
@@ -1,18 +1,18 @@
import Toaster from "./components/Helpers/Toaster";
import Routers from "./Routers";
import Default from "./components/Partials/Default";
import { Navigate, useLocation } from "react-router-dom"; 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() { function App() {
const {pathname} = useLocation() const { pathname } = useLocation();
return ( return (
<Default> <Default>
<> <>
{pathname.startsWith('/@') ? {pathname.startsWith("/@") ? (
<Navigate to="/app" replace={true} /> <Navigate to="/app" replace={true} />
: ) : (
<Routers /> <Routers />
} )}
<Toaster /> <Toaster />
</> </>
</Default> </Default>
@@ -115,8 +115,6 @@ export default function VerifyLink() {
debouncedEmail(token); debouncedEmail(token);
}, []); }, []);
// ebube.ojinta+ga1@chiefsoft.com
return ( return (
<> <>
<AuthLayout slogan="Welcome to WrenchBoard"> <AuthLayout slogan="Welcome to WrenchBoard">
+8 -7
View File
@@ -48,6 +48,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
// 9308RDR122 // 9308RDR122
const handlerBalance = () => { const handlerBalance = () => {
setbalanceValue.toggle(); setbalanceValue.toggle();
if (notificationDropdown) { if (notificationDropdown) {
@@ -240,7 +241,7 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
{/* balance */} {/* balance */}
{/* My Page Button */} {/* My Page Button */}
<PageButton /> {userDetails.account_type === "FULL" ? <PageButton /> : null}
{/*<div className="lg:hidden block"></div>*/} {/*<div className="lg:hidden block"></div>*/}
<WalletHeader <WalletHeader
@@ -671,13 +672,13 @@ export default function Header({ logoutModalHandler, sidebarHandler }) {
); );
} }
const PageButton = () => { const PageButton = () => {
return ( return (
<Link to="/yourpage" className="lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px] items-center rounded-full relative bg-sky-blue pr-1.5 pl-4"> <Link
<div to="/yourpage"
className="flex items-center lg:justify-between justify-center w-full h-full" className="lg:flex hidden user-balance cursor-pointer lg:w-[152px] w-[150px] h-[48px] items-center rounded-full relative bg-sky-blue pr-1.5 pl-4"
> >
<div className="flex items-center lg:justify-between justify-center w-full h-full">
<span className="lg:block hidden w-[25px]"> <span className="lg:block hidden w-[25px]">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 50" id="Page"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 50" id="Page">
<path <path
@@ -694,5 +695,5 @@ const PageButton = () => {
</span> </span>
</div> </div>
</Link> </Link>
) );
} };