1
0
Fork 0

fix(www): Layout fixed to blog pages

This commit is contained in:
Joost De Cock 2022-05-30 16:40:51 +02:00
parent 5e13e7933c
commit cb01cd6b8e
3 changed files with 12 additions and 10 deletions

View file

@ -15,6 +15,8 @@ import customComponents from 'shared/components/mdx'
// Previous-Next navigation
import PrevNext from '../mdx/prev-next'
const Null = (props) => null
const MdxWrapper = ({mdx, app, t, components={}}) => {
const [mdxModule, setMdxModule] = useState()
@ -36,7 +38,7 @@ const MdxWrapper = ({mdx, app, t, components={}}) => {
}
// React component for MDX content
const MdxContent = mdxModule ? mdxModule.default : Fragment
const MdxContent = mdxModule ? mdxModule.default : Null
return app
? (