### 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)
11 lines
218 B
TypeScript
11 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>
|
|
);
|
|
}
|