move Layout into _app.tsx

This commit is contained in:
Thomas Ruoff
2022-09-09 00:17:47 +02:00
committed by Thomas Ruoff
parent 7389289b81
commit 2fd3a47e72
12 changed files with 112 additions and 132 deletions

View File

@@ -3,15 +3,11 @@ import { serialize } from 'next-mdx-remote/serialize'
import { MDXRemote } from 'next-mdx-remote'
import mdComponents from '../components/mdComponents'
import Layout from '../components/layout'
export default function TermsPage({ source }) {
return (
<Layout>
<div className="text-gray-700">
<MDXRemote {...source} components={{ ...mdComponents }} />
</div>
</Layout>
<div className="text-gray-700">
<MDXRemote {...source} components={{ ...mdComponents }} />
</div>
)
}