Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b418ca7d58 | |||
| 9eea804f71 |
@@ -9,19 +9,10 @@ import siteLinks from '../../links/siteLinks';
|
|||||||
export default function Layout() {
|
export default function Layout() {
|
||||||
|
|
||||||
const {pathname} = useLocation()
|
const {pathname} = useLocation()
|
||||||
const isProfileComplete = pathname == siteLinks.profile_complete
|
// const isProfileComplete = pathname == siteLinks.profile_complete
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="app">
|
<div className="app">
|
||||||
{isProfileComplete ?
|
|
||||||
<div className="app-wrap">
|
|
||||||
<UserHeader />
|
|
||||||
<div className="container-fluid">
|
|
||||||
<Outlet />
|
|
||||||
</div>
|
|
||||||
<UserFooter isProfileComplete={isProfileComplete} />
|
|
||||||
</div>
|
|
||||||
:
|
|
||||||
<div className="app-wrap">
|
<div className="app-wrap">
|
||||||
<UserHeader />
|
<UserHeader />
|
||||||
<div className="app-container">
|
<div className="app-container">
|
||||||
@@ -37,7 +28,6 @@ export default function Layout() {
|
|||||||
</div>
|
</div>
|
||||||
<UserFooter />
|
<UserFooter />
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export default function UserFooter({isProfileComplete=false}){
|
export default function UserFooter(){
|
||||||
|
|
||||||
const year = new Date().getFullYear()
|
const year = new Date().getFullYear()
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<footer className={`${isProfileComplete && 'w-100'} footer`}>
|
<footer className={`footer`}>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12 col-sm-6 text-center text-sm-left">
|
<div className="col-12 col-sm-6 text-center text-sm-left">
|
||||||
<p>© Copyright {year}. All rights reserved.</p>
|
<p>© Copyright {year}. All rights reserved.</p>
|
||||||
|
|||||||
@@ -47,9 +47,8 @@ export default function ProfileCompleteCom(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <>
|
return <>
|
||||||
<div style={{marginTop: '90px'}}>
|
|
||||||
<BreadcrumbComBS title='Update Profile' paths={['Dashboard', 'Profile']} />
|
<BreadcrumbComBS title='Update Profile' paths={['Dashboard', 'Profile']} />
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="row pt-1">
|
<div className="row pt-1">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user