This commit is contained in:
hyojun.choi 2024-09-10 16:54:58 +09:00
commit 7697bfeca0
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,6 @@ import { Inter } from 'next/font/google'
import RecoilRootWrapper from './RecoilWrapper'
import UIProvider from './UIProvider'
import { headers } from 'next/headers'
import { ToastContainer } from 'react-toastify'
import QModal from '@/components/common/modal/QModal'
@ -19,10 +18,6 @@ export const metadata = {
}
export default function RootLayout({ children }) {
const headersList = headers()
const headerPathname = headersList.get('x-pathname') || ''
// console.log('headerPathname', headerPathname)
return (
<html lang="en">
<body className={inter.className}>

View File

@ -1,6 +1,7 @@
'use client'
import Link from 'next/link'
import QSelectBox from '@/components/common/select/QSelectBox'
import { usePathname } from 'next/navigation'
export const ToggleonMouse = (e, act, target) => {
const listWrap = e.target.closest(target)
@ -18,7 +19,12 @@ export const ToggleonMouse = (e, act, target) => {
}
export default function Header() {
const pathName = usePathname()
if (pathName.includes('login')) {
return null
}
const SelectOption = [{ name: 'オンライン保証シ' }, { name: 'ステム' }]
return (
<header>
<div className="header-inner">