From 8e0c8c9255ba5ab466d8372fe223efeb5a3f0833 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 29 Dec 2021 17:52:21 +0100 Subject: chore: replace read more link with ButtonLink component I also fix the load more button position since I removed the margin auto. --- src/components/Buttons/ButtonLink/ButtonLink.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 70039a8..a2f75f2 100644 --- a/src/components/Buttons/ButtonLink/ButtonLink.tsx +++ b/src/components/Buttons/ButtonLink/ButtonLink.tsx @@ -8,13 +8,17 @@ const ButtonLink = ({ target, position = 'left', isExternal = false, + hasIcon = false, }: { children: ReactNode; target: string; position?: ButtonPosition; isExternal?: boolean; + hasIcon?: boolean; }) => { - const classes = `${styles.btn} ${styles.link} ${styles[`link--${position}`]}`; + const classes = `${styles.btn} ${styles.link} ${styles[`link--${position}`]}${ + hasIcon ? ` ${styles['link--icon']}` : '' + }`; return isExternal ? ( -- cgit v1.2.3