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 <> -