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