From f914ff8376dd91c4f6f8ca149e1cb6becb622d88 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 2 Oct 2023 18:45:30 +0200
Subject: 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
---
 src/components/atoms/links/nav-link.tsx | 32 --------------------------------
 1 file changed, 32 deletions(-)
 delete mode 100644 src/components/atoms/links/nav-link.tsx

(limited to 'src/components/atoms/links/nav-link.tsx')

diff --git a/src/components/atoms/links/nav-link.tsx b/src/components/atoms/links/nav-link.tsx
deleted file mode 100644
index 109529c..0000000
--- a/src/components/atoms/links/nav-link.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import Link from 'next/link';
-import { FC, ReactNode } from 'react';
-import styles from './nav-link.module.scss';
-
-export type NavLinkProps = {
-  /**
-   * Link target.
-   */
-  href: string;
-  /**
-   * Link label.
-   */
-  label: string;
-  /**
-   * Link logo.
-   */
-  logo?: ReactNode;
-};
-
-/**
- * NavLink component
- *
- * Render a navigation link.
- */
-export const NavLink: FC<NavLinkProps> = ({ href, label, logo }) => {
-  return (
-    <Link className={styles.link} href={href}>
-      {logo}
-      {label}
-    </Link>
-  );
-};
-- 
cgit v1.2.3

