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