aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/cv.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-02 18:45:30 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commitf914ff8376dd91c4f6f8ca149e1cb6becb622d88 (patch)
tree777dc0268eba86721878a715c68f0f09bedb4b18 /src/pages/cv.tsx
parentb52b8183ce299b5a2d3c3b2f4f8cb94bb443d746 (diff)
refactor(components): rewrite Link component
* rename `external` prop to `isExternal` * rename `download` prop to `isDownload` * rewrite CSS to reduce code length and complexity * move link styles in Sass placeholders to avoid repeats because of WordPress articles * move NavLink component to molecules
Diffstat (limited to 'src/pages/cv.tsx')
-rw-r--r--src/pages/cv.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/cv.tsx b/src/pages/cv.tsx
index 5882ff6..b23c7a2 100644
--- a/src/pages/cv.tsx
+++ b/src/pages/cv.tsx
@@ -38,7 +38,7 @@ const ExternalLink = ({
href = '',
...props
}: AnchorHTMLAttributes<HTMLAnchorElement>) => (
- <Link {...props} external={true} href={href}>
+ <Link {...props} isExternal href={href}>
{children}
</Link>
);
@@ -172,7 +172,7 @@ const CVPage: NextPageWithLayout = () => {
},
{
link: (chunks: ReactNode) => (
- <Link download={true} href={file}>
+ <Link href={file} isDownload>
{chunks}
</Link>
),