diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-22 17:45:03 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-22 17:46:32 +0100 |
| commit | 0ac690339083f01a0b12a74ec117eeccd055e932 (patch) | |
| tree | 539ffee3b35b086a8c035e5abc916ab603fe0001 /src/components/atoms/heading/heading.tsx | |
| parent | d4045fbcbfa8208ec31539744417f315f1f6fad8 (diff) | |
refactor(components,pages): extract MDX components mapping from pages
Instead of repeating the overriding on each pages, we should define
it in one place and reuse it in pages.
By default it is not possible to override native HTML tags with MDX
so I added a plugin in next config to allow it.
Diffstat (limited to 'src/components/atoms/heading/heading.tsx')
| -rw-r--r-- | src/components/atoms/heading/heading.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/atoms/heading/heading.tsx b/src/components/atoms/heading/heading.tsx index 6cdb578..d8c58d1 100644 --- a/src/components/atoms/heading/heading.tsx +++ b/src/components/atoms/heading/heading.tsx @@ -14,7 +14,7 @@ export type HeadingProps = HTMLAttributes<HTMLHeadingElement> & { /** * The heading body. */ - children: ReactNode; + children?: ReactNode; /** * Use an heading element or only its styles. * |
