From 550b2e6c51fabfe21b6890359545548cef1674fd Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Aug 2023 16:31:46 +0200 Subject: [PATCH] Rename `AppBody` to just `Body` --- .../src/app/[lang]/{AppBody.module.css => Body.module.css} | 0 todoblue/src/app/[lang]/{AppBody.tsx => Body.tsx} | 4 ++-- todoblue/src/app/[lang]/layout.tsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename todoblue/src/app/[lang]/{AppBody.module.css => Body.module.css} (100%) rename todoblue/src/app/[lang]/{AppBody.tsx => Body.tsx} (51%) diff --git a/todoblue/src/app/[lang]/AppBody.module.css b/todoblue/src/app/[lang]/Body.module.css similarity index 100% rename from todoblue/src/app/[lang]/AppBody.module.css rename to todoblue/src/app/[lang]/Body.module.css diff --git a/todoblue/src/app/[lang]/AppBody.tsx b/todoblue/src/app/[lang]/Body.tsx similarity index 51% rename from todoblue/src/app/[lang]/AppBody.tsx rename to todoblue/src/app/[lang]/Body.tsx index ded575f..854ea0d 100644 --- a/todoblue/src/app/[lang]/AppBody.tsx +++ b/todoblue/src/app/[lang]/Body.tsx @@ -1,8 +1,8 @@ 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 ( {children} diff --git a/todoblue/src/app/[lang]/layout.tsx b/todoblue/src/app/[lang]/layout.tsx index f689de2..30d0bc6 100644 --- a/todoblue/src/app/[lang]/layout.tsx +++ b/todoblue/src/app/[lang]/layout.tsx @@ -1,7 +1,7 @@ // noinspection JSUnusedGlobalSymbols import "./layout.css"; -import {AppBody} from "@/app/[lang]/AppBody" +import {Body} from "@/app/[lang]/Body" import {StarredManager} from "@/app/[lang]/StarContext" import type {Metadata as NextMetadata} from "next" import {default as React, ReactNode} from "react" @@ -24,11 +24,11 @@ export const metadata: NextMetadata = { export default function layout({children}: { children: ReactNode }) { return ( - + {children} - + ) }