aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/PostPreview/PostPreview.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-08 19:34:18 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-08 19:34:18 +0100
commitd738152a59d2ef8f476b16789ba386dc57ff2211 (patch)
tree5ed6e82114e50006ba2e3183d00dfbb0fffd746e /src/components/PostPreview/PostPreview.tsx
parent118f2225e991fad2872e1073eeccb8dbcdd5334d (diff)
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.
Diffstat (limited to 'src/components/PostPreview/PostPreview.tsx')
-rw-r--r--src/components/PostPreview/PostPreview.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/PostPreview/PostPreview.tsx b/src/components/PostPreview/PostPreview.tsx
index 9cb7752..d89ddb5 100644
--- a/src/components/PostPreview/PostPreview.tsx
+++ b/src/components/PostPreview/PostPreview.tsx
@@ -48,11 +48,7 @@ const PostPreview = ({
dangerouslySetInnerHTML={{ __html: post.intro }}
></div>
<footer className={styles.footer}>
- <ButtonLink
- target={`/article/${post.slug}`}
- position="left"
- hasIcon={true}
- >
+ <ButtonLink target={`/article/${post.slug}`} position="left">
{t`Read more`}
<span className="screen-reader-text">
{' '}