aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-20 14:06:48 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commitc6f6f8f895e68f2d85ca681997ef613d982bac14 (patch)
tree50e21f0721781aad231445c4e5af24deadb2d0de /src/pages
parentc3cde71e60ae22d17c1d162f678f592915ac5398 (diff)
refactor(components): rewrite NavList component
* extract NavItem from NavList * remove `kind` and `listClassName` props (since the consumer has control over NavList, NavItem and NavLink components these props are obsolete)
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/cv.tsx2
-rw-r--r--src/pages/projets/[slug].tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx
index d9f7031..c2d3588 100644
--- a/src/pages/cv.tsx
+++ b/src/pages/cv.tsx
@@ -124,7 +124,7 @@ const components: MDXComponents = {
h4: H4,
h5: H5,
h6: H6,
- li: ListItem,
+ li: ({ ref, ...props }) => <ListItem {...props} />,
Link,
ol: OrderedList,
ul: UnorderedList,
diff --git a/src/pages/projets/[slug].tsx b/src/pages/projets/[slug].tsx
index 17be961..d397d27 100644
--- a/src/pages/projets/[slug].tsx
+++ b/src/pages/projets/[slug].tsx
@@ -140,7 +140,7 @@ const components: MDXComponents = {
h5: H5,
h6: H6,
Image: BorderedImage,
- li: ListItem,
+ li: ({ ref, ...props }) => <ListItem {...props} />,
Link,
ol: OrderedList,
ul: UnorderedList,