diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-01 23:26:27 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-01 23:36:29 +0100 |
| commit | 66822d929b48c93e44acb2c73a542417549335ac (patch) | |
| tree | dd263778f666c9e83bab9cb85a072081a1134c39 /src/components/Buttons/Button | |
| parent | eeb9ea8d489c890a80c88658cb860577075ac660 (diff) | |
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.
Diffstat (limited to 'src/components/Buttons/Button')
| -rw-r--r-- | src/components/Buttons/Button/Button.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
