rename to mdComponents

This commit is contained in:
Thomas Ruoff
2021-04-12 23:51:26 +02:00
parent f06aca8bdf
commit d6e1f84363
4 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import { readFileSync } from 'fs'
import renderToString from 'next-mdx-remote/render-to-string'
import mdFormatter from '../helpers/mdFormatter'
import mdComponents from '../components/mdComponents'
import Layout from '../components/layout'
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
export async function getStaticProps() {
const source = readFileSync('./md/impressum.md', 'utf8')
const { renderedOutput } = await renderToString(source, {
components: { ...mdFormatter },
components: { ...mdComponents },
})
return { props: { renderedOutput } }
}

View File

@@ -1,6 +1,6 @@
import { readFileSync } from 'fs'
import renderToString from 'next-mdx-remote/render-to-string'
import mdFormatter from '../helpers/mdFormatter'
import mdComponents from '../components/mdComponents'
import Layout from '../components/layout'
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
export async function getStaticProps() {
const source = readFileSync('./md/privacy.md', 'utf8')
const { renderedOutput } = await renderToString(source, {
components: { ...mdFormatter },
components: { ...mdComponents },
})
return { props: { renderedOutput } }
}

View File

@@ -1,6 +1,6 @@
import { readFileSync } from 'fs'
import renderToString from 'next-mdx-remote/render-to-string'
import mdFormatter from '../helpers/mdFormatter'
import mdComponents from '../components/mdComponents'
import Layout from '../components/layout'
@@ -18,7 +18,7 @@ export default function TermsPage({ renderedOutput }) {
export async function getStaticProps() {
const source = readFileSync('./md/terms.md', 'utf8')
const { renderedOutput } = await renderToString(source, {
components: { ...mdFormatter },
components: { ...mdComponents },
})
return { props: { renderedOutput } }
}