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 (