mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-26 02:04:17 +00:00
Rename AppBody
to just Body
This commit is contained in:
parent
53478aaf27
commit
550b2e6c51
3 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,8 @@
|
||||||
import {ReactNode} from "react"
|
import {ReactNode} from "react"
|
||||||
import style from "./AppBody.module.css"
|
import style from "./Body.module.css"
|
||||||
|
|
||||||
|
|
||||||
export function AppBody({children}: {children: ReactNode}) {
|
export function Body({children}: {children: ReactNode}) {
|
||||||
return (
|
return (
|
||||||
<body className={style.appBody}>
|
<body className={style.appBody}>
|
||||||
{children}
|
{children}
|
|
@ -1,7 +1,7 @@
|
||||||
// noinspection JSUnusedGlobalSymbols
|
// noinspection JSUnusedGlobalSymbols
|
||||||
|
|
||||||
import "./layout.css";
|
import "./layout.css";
|
||||||
import {AppBody} from "@/app/[lang]/AppBody"
|
import {Body} from "@/app/[lang]/Body"
|
||||||
import {StarredManager} from "@/app/[lang]/StarContext"
|
import {StarredManager} from "@/app/[lang]/StarContext"
|
||||||
import type {Metadata as NextMetadata} from "next"
|
import type {Metadata as NextMetadata} from "next"
|
||||||
import {default as React, ReactNode} from "react"
|
import {default as React, ReactNode} from "react"
|
||||||
|
@ -24,11 +24,11 @@ export const metadata: NextMetadata = {
|
||||||
export default function layout({children}: { children: ReactNode }) {
|
export default function layout({children}: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<AppBody>
|
<Body>
|
||||||
<StarredManager>
|
<StarredManager>
|
||||||
{children}
|
{children}
|
||||||
</StarredManager>
|
</StarredManager>
|
||||||
</AppBody>
|
</Body>
|
||||||
</html>
|
</html>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue