diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-01 22:05:08 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-01 22:05:08 +0100 |
| commit | 8bd9784acdee6871ad70e86d0d7120299bf76969 (patch) | |
| tree | 9b81e0cd3ff881b2cbeb81f9f96b52b510d67646 /src/pages | |
| parent | 21c228600a7a69cfea3b7d8af6838bcfda1d7399 (diff) | |
refactor: split posts meta into smaller components
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/article/[slug].tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index 6d0ad5a..656f7c9 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -22,7 +22,7 @@ import { usePrismTheme } from '@utils/providers/prism'; import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import { useRouter } from 'next/router'; -import Prism from 'prismjs'; +import { highlightAll } from 'prismjs'; import { ParsedUrlQuery } from 'querystring'; import { useEffect } from 'react'; import { useIntl } from 'react-intl'; @@ -39,7 +39,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ useEffect(() => { addPrismClasses(); - Prism.highlightAll(); + highlightAll(); }); const { setCodeBlocks } = usePrismTheme(); |
