From 66822d929b48c93e44acb2c73a542417549335ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 1 Feb 2022 23:26:27 +0100
Subject: chore: move pagination cursor title in a separate div

The progress bar will be clearer for everyone if the information about
the number of loaded articles is printed without hovering the progress
bar.
---
 src/components/Buttons/Button/Button.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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

diff --git a/src/components/Buttons/Button/Button.tsx b/src/components/Buttons/Button/Button.tsx
index 86e0e5b..ada23fe 100644
--- a/src/components/Buttons/Button/Button.tsx
+++ b/src/components/Buttons/Button/Button.tsx
@@ -7,15 +7,18 @@ const Button = ({
   clickHandler,
   kind = 'secondary',
   position = 'left',
+  spacing = false,
   isDisabled = false,
 }: {
   children: ReactNode;
   clickHandler: any;
   kind?: ButtonKind;
   position?: ButtonPosition;
+  spacing?: boolean;
   isDisabled?: boolean;
 }) => {
-  const classes = `${styles.btn} ${styles[position]} ${styles[kind]}`;
+  const spacingClass = spacing ? styles.spacing : '';
+  const classes = `${styles.btn} ${styles[position]} ${styles[kind]} ${spacingClass}`;
 
   return (
     <button
-- 
cgit v1.2.3

