From f3ebb0a9255da0e1e98821e69a5e704b994a49c1 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 13 Aug 2025 11:08:30 +0100 Subject: [PATCH] updated profile layout --- src/component/layout/Layout.jsx | 18 +++- src/component/layout/layoutcom/UserFooter.jsx | 4 +- src/component/layout/layoutcom/UserHeader.jsx | 2 +- .../profile_complete/ProfileCompleteCom.jsx | 82 ++++++++++++++----- src/services/services.js | 8 ++ src/views/ProfileCompletePage.jsx | 1 - 6 files changed, 89 insertions(+), 26 deletions(-) diff --git a/src/component/layout/Layout.jsx b/src/component/layout/Layout.jsx index 1895e9c..5ae8079 100644 --- a/src/component/layout/Layout.jsx +++ b/src/component/layout/Layout.jsx @@ -1,16 +1,31 @@ import React from 'react' +import { Outlet, useLocation } from 'react-router-dom'; import UserMenu from "./layoutcom/UserMenu"; import UserHeader from "./layoutcom/UserHeader"; import UserFooter from "./layoutcom/UserFooter"; -import { Outlet } from 'react-router-dom'; +import siteLinks from '../../links/siteLinks'; export default function Layout() { + + const {pathname} = useLocation() + const isProfileComplete = pathname == siteLinks.profile_complete + return (
+ {isProfileComplete ? +
+ +
+ +
+ +
+ :
+ @@ -22,6 +37,7 @@ export default function Layout() {
+ }
) } diff --git a/src/component/layout/layoutcom/UserFooter.jsx b/src/component/layout/layoutcom/UserFooter.jsx index 5cc3143..7f7d797 100644 --- a/src/component/layout/layoutcom/UserFooter.jsx +++ b/src/component/layout/layoutcom/UserFooter.jsx @@ -1,11 +1,11 @@ import React from "react"; -export default function UserFooter(){ +export default function UserFooter({isProfileComplete=false}){ const year = new Date().getFullYear() return <> -