diff --git a/app/blog/[slug]/page.jsx b/app/blog/[slug]/page.jsx index 342c822e..a84beb5f 100644 --- a/app/blog/[slug]/page.jsx +++ b/app/blog/[slug]/page.jsx @@ -1,6 +1,6 @@ import s from 'styles/pages/blog/[slug].module.css'; -import { cache } from 'react'; +import { Suspense, cache } from 'react'; import dynamic from 'next/dynamic'; import { getArticle } from 'lib/articles/parser'; import config from 'lib/config'; @@ -55,10 +55,10 @@ export default async function BlogArticle({ params }) { const { frontMatter, source } = await fetchArticle({ slug }); return ( - <> + Loading...}>
- +
); } diff --git a/components/articles/mdx/heading/index.jsx b/components/articles/mdx/heading/index.jsx index 039faabe..e37cb2cb 100644 --- a/components/articles/mdx/heading/index.jsx +++ b/components/articles/mdx/heading/index.jsx @@ -1,4 +1,4 @@ -import { kebapCase } from "lib/helpers/string"; +import { kebapCase } from 'lib/helpers/string'; const extractTitle = (children) => { return typeof children === 'object' ? children.props?.title : children; @@ -6,7 +6,7 @@ const extractTitle = (children) => { const extractName = (title) => { return title ? kebapCase(title) : null; -} +}; const CopyToClipboard = ({ id, title, children }) => (