From 83589926981b3ad5d0818a3d94856cbcb312098c Mon Sep 17 00:00:00 2001 From: mikwee Date: Fri, 5 Nov 2021 12:51:13 +0200 Subject: [PATCH] Removing the button --- src/App.js | 1 - src/button/Button.jsx | 25 ------------------------- src/button/button.css | 0 3 files changed, 26 deletions(-) delete mode 100644 src/button/Button.jsx delete mode 100644 src/button/button.css diff --git a/src/App.js b/src/App.js index cd6b3f8..0c33867 100644 --- a/src/App.js +++ b/src/App.js @@ -1,7 +1,6 @@ import './App.css'; import {AwesomeButton} from 'react-awesome-button'; import FacebookStyle from './styles/facebook.scss'; -import { Button} from './button/Button'; import data from './roots.json' function App() { diff --git a/src/button/Button.jsx b/src/button/Button.jsx deleted file mode 100644 index 470b489..0000000 --- a/src/button/Button.jsx +++ /dev/null @@ -1,25 +0,0 @@ -import React from "react"; -import "./button.css"; - -const STYLES = [ - "btn--primary--solid", - "btn--warning--solid", - "btn--solid--solid", - "btn--success--solid", - "btn--primary--outline", - "btn--primary--outline", - "btn--primary--outline", - "btn--primary--outline", -] - -const SIZES = ["btn--medium", "btn--small"] - -export const Button = ({children, type, onClick, buttonStyle, buttonSize}) => { - const checkButtonStyle = STYLES.includes(buttonStyle) ? buttonStyle : STYLES[0]; - const checkButtonSize = SIZES.includes(buttonSize) ? buttonSize : SIZES[0]; - return ( - - ); -}; \ No newline at end of file diff --git a/src/button/button.css b/src/button/button.css deleted file mode 100644 index e69de29..0000000