aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Buttons/Button
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-29 12:13:34 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-29 18:30:05 +0200
commit7e16f500cb7bc0cfd8bafbf6bb1555704f771231 (patch)
treebfc2b4a475cb06a787e2c4bdf284165644e82952 /src/components/Buttons/Button
parent5324664e87bedfaa01ba62c0c847ef5b861e69b3 (diff)
chore: remove old pages, components, helpers and types
Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
Diffstat (limited to 'src/components/Buttons/Button')
-rw-r--r--src/components/Buttons/Button/Button.tsx35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/components/Buttons/Button/Button.tsx b/src/components/Buttons/Button/Button.tsx
deleted file mode 100644
index ada23fe..0000000
--- a/src/components/Buttons/Button/Button.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import { ButtonKind, ButtonPosition } from '@ts/types/app';
-import { ReactNode } from 'react';
-import styles from '../Buttons.module.scss';
-
-const Button = ({
- children,
- clickHandler,
- kind = 'secondary',
- position = 'left',
- spacing = false,
- isDisabled = false,
-}: {
- children: ReactNode;
- clickHandler: any;
- kind?: ButtonKind;
- position?: ButtonPosition;
- spacing?: boolean;
- isDisabled?: boolean;
-}) => {
- const spacingClass = spacing ? styles.spacing : '';
- const classes = `${styles.btn} ${styles[position]} ${styles[kind]} ${spacingClass}`;
-
- return (
- <button
- className={classes}
- type="button"
- disabled={isDisabled}
- onClick={clickHandler}
- >
- {children}
- </button>
- );
-};
-
-export default Button;