mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-05 06:59:11 +01:00
fix: add proper types to dynamic MDX content import
Co-Authored-By: G <butaeff@gmail.com>
This commit is contained in:
1 parent
89578a0912
commit
bd97481508
1 file changed
+5
-3
+5
-3
@@ -1,9 +1,11 @@
|
||||
import React from 'react';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { MDXContent as MDXContentType } from './mdx-provider';
|
||||
|
||||
const MDXContent = dynamic(() => import('./mdx-provider'), {
|
||||
ssr: true
|
||||
});
|
||||
const MDXContent = dynamic<MDXContentType>(
|
||||
() => import('./mdx-provider').then(mod => mod.default),
|
||||
{ ssr: true }
|
||||
);
|
||||
|
||||
export default function BlogLayout({
|
||||
children,
|
||||
|
||||
Reference in new issue
Block a user