重构文件结构,调整 Header 和 Footer 组件的导入路径
This commit is contained in:
@@ -6,7 +6,7 @@ import Link from 'next/link'
|
||||
import {merge} from '@/lib/utils'
|
||||
import prod from '@/assets/header/product/prod.svg'
|
||||
import custom from '@/assets/header/product/custom.svg'
|
||||
import {HeaderContext} from '@/app/(root)/@header/_client/provider'
|
||||
import {HeaderContext} from '@/app/(home)/@header/_client/provider'
|
||||
|
||||
type TabType = 'domestic' | 'oversea'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Provider from '@/app/(root)/@header/_client/provider'
|
||||
import Provider from '@/app/(home)/@header/_client/provider'
|
||||
|
||||
export type HeaderProps = {}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import Header from '@/app/(root)/@header/page'
|
||||
import Footer from '@/app/(root)/@footer/page'
|
||||
import Header from '@/app/(home)/@header/page'
|
||||
import Footer from '@/app/(home)/@footer/page'
|
||||
import {ReactNode} from 'react'
|
||||
|
||||
export type RootLayoutProps = {
|
||||
export type HomeLayoutProps = {
|
||||
children: ReactNode
|
||||
}
|
||||
|
||||
export default function RootLayout(props: RootLayoutProps) {
|
||||
export default function HomeLayout(props: HomeLayoutProps) {
|
||||
return (
|
||||
<div className={`overflow-auto bg-blue-50 flex flex-col items-stretch relative`}>
|
||||
{/* 页头 */}
|
||||
@@ -24,7 +24,7 @@ export default async function RootLayout({
|
||||
const user = await getProfile()
|
||||
|
||||
return (
|
||||
<html lang="zh-Cn">
|
||||
<html lang="zh-CN">
|
||||
<body className={`${font.className}`}>
|
||||
<StoreProvider user={user}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user