From d738152a59d2ef8f476b16789ba386dc57ff2211 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 8 Jan 2022 19:34:18 +0100
Subject: refactor: improve button-like links styles

The goal was to replace the "read more articles about" links with
button-like links to keep a certain consistence between buttons.
The hasIcon variable was useless so I update some components and
especially the back to top link.
---
 src/components/Buttons/ButtonLink/ButtonLink.tsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/components/Buttons/ButtonLink/ButtonLink.tsx')

diff --git a/src/components/Buttons/ButtonLink/ButtonLink.tsx b/src/components/Buttons/ButtonLink/ButtonLink.tsx
index 3e78440..4c94b34 100644
--- a/src/components/Buttons/ButtonLink/ButtonLink.tsx
+++ b/src/components/Buttons/ButtonLink/ButtonLink.tsx
@@ -8,17 +8,14 @@ const ButtonLink = ({
   target,
   position = 'left',
   isExternal = false,
-  hasIcon = false,
 }: {
   children: ReactNode;
   target: string;
   position?: ButtonPosition;
   isExternal?: boolean;
-  hasIcon?: boolean;
 }) => {
   const positionModifier = `link--${position}`;
-  const iconModifier = hasIcon ? ` ${styles['link--icon']}` : '';
-  const classes = `${styles.btn} ${styles.link} ${styles[positionModifier]}${iconModifier}`;
+  const classes = `${styles.btn} ${styles.link} ${styles[positionModifier]}`;
 
   return isExternal ? (
     <a className={classes} href={target}>
-- 
cgit v1.2.3

