From 79c5e86d719fdf952eb84b6268a8518e022ddcfd Mon Sep 17 00:00:00 2001 From: bravo-kernel Date: Fri, 13 Jan 2023 23:28:53 +0100 Subject: [PATCH] Add missing Layout.tsx for generated mimimalapp (#4054) --- .changeset/tasty-squids-sin.md | 5 +++++ .../minimalapp/src/core/layouts/Layout.tsx | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .changeset/tasty-squids-sin.md create mode 100644 packages/generator/templates/minimalapp/src/core/layouts/Layout.tsx diff --git a/.changeset/tasty-squids-sin.md b/.changeset/tasty-squids-sin.md new file mode 100644 index 0000000000..c5a2f9aac5 --- /dev/null +++ b/.changeset/tasty-squids-sin.md @@ -0,0 +1,5 @@ +--- +"@blitzjs/generator": patch +--- + +Add missing Layout.tsx for generated mimimalapp diff --git a/packages/generator/templates/minimalapp/src/core/layouts/Layout.tsx b/packages/generator/templates/minimalapp/src/core/layouts/Layout.tsx new file mode 100644 index 0000000000..d15472911e --- /dev/null +++ b/packages/generator/templates/minimalapp/src/core/layouts/Layout.tsx @@ -0,0 +1,18 @@ +import Head from "next/head" +import React, {FC} from "react" +import {BlitzLayout} from "@blitzjs/next" + +const Layout: BlitzLayout<{title?: string; children?: React.ReactNode}> = ({title, children}) => { + return ( + <> + + {title || "__name__"} + + + + {children} + + ) +} + +export default Layout