mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 23:46:52 +08:00
### What problem does this PR solve? For proper semantics Layout should use HTML `<main>` element to wrap the Header and Outlet which produce`<section>` HTML elements. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
12 lines
218 B
TypeScript
12 lines
218 B
TypeScript
import { Outlet } from 'umi';
|
|
import { Header } from './next-header';
|
|
|
|
export default function NextLayout() {
|
|
return (
|
|
<main className="h-full flex flex-col">
|
|
<Header />
|
|
<Outlet />
|
|
</main>
|
|
);
|
|
}
|