FloorPlan 화면에서 footer 제거
This commit is contained in:
parent
5d8bd03e0c
commit
065c17cc17
@ -8,12 +8,12 @@ import Header from '@/components/header/Header'
|
|||||||
import QModal from '@/components/common/modal/QModal'
|
import QModal from '@/components/common/modal/QModal'
|
||||||
import Dimmed from '@/components/ui/Dimmed'
|
import Dimmed from '@/components/ui/Dimmed'
|
||||||
import SessionProvider from './SessionProvider'
|
import SessionProvider from './SessionProvider'
|
||||||
import LocaleSwitch from '@/components/LocaleSwitch'
|
|
||||||
import PopupManager from '@/components/common/popupManager/PopupManager'
|
import PopupManager from '@/components/common/popupManager/PopupManager'
|
||||||
|
|
||||||
import './globals.css'
|
import './globals.css'
|
||||||
import '../styles/style.scss'
|
import '../styles/style.scss'
|
||||||
import '../styles/contents.scss'
|
import '../styles/contents.scss'
|
||||||
|
import Footer from '@/components/footer/Footer'
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: 'Create Next App',
|
title: 'Create Next App',
|
||||||
@ -69,12 +69,7 @@ export default async function RootLayout({ children }) {
|
|||||||
<SessionProvider useSession={sessionProps}>{children}</SessionProvider>
|
<SessionProvider useSession={sessionProps}>{children}</SessionProvider>
|
||||||
</QcastProvider>
|
</QcastProvider>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<Footer />
|
||||||
<div className="footer-inner flex justify-center">
|
|
||||||
<span>COPYRIGHT©2024 Hanwha Japan All Rights Reserved.</span>
|
|
||||||
<LocaleSwitch />
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<QModal />
|
<QModal />
|
||||||
|
|||||||
18
src/components/footer/Footer.jsx
Normal file
18
src/components/footer/Footer.jsx
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
'use client'
|
||||||
|
import LocaleSwitch from '@/components/LocaleSwitch'
|
||||||
|
import { usePathname } from 'next/navigation'
|
||||||
|
|
||||||
|
export default function Footer() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
{usePathname() !== '/floor-plan' && (
|
||||||
|
<footer>
|
||||||
|
<div className="footer-inner flex justify-center">
|
||||||
|
<span>COPYRIGHT©2024 Hanwha Japan All Rights Reserved.</span>
|
||||||
|
<LocaleSwitch />
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user