fix(www): Layout fixed to blog pages
This commit is contained in:
parent
5e13e7933c
commit
cb01cd6b8e
3 changed files with 12 additions and 10 deletions
|
@ -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
|
||||
? (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue