From 75e8bdd2d4cdaefe28ed40a7735c993f98d15754 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 6 Mar 2021 16:32:09 -0800 Subject: refactor form -> common --- frontend/src/components/Form/Button.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 frontend/src/components/Form/Button.js (limited to 'frontend/src/components/Form/Button.js') diff --git a/frontend/src/components/Form/Button.js b/frontend/src/components/Form/Button.js deleted file mode 100644 index 290e52a..0000000 --- a/frontend/src/components/Form/Button.js +++ /dev/null @@ -1,31 +0,0 @@ -import styled, {css} from 'styled-components' -import {Border, ButtonLike, DropShadow, Rounded} from "./mixins"; - -const Base = css` - ${DropShadow} - ${Rounded} - ${ButtonLike} - margin-right: 2em; - cursor: pointer; -` - -const Primary = css` - ${Base}; - border: none; - color: ${p => p.theme.colors.background}; - background-color: ${p => p.theme.colors.text}; -` -const Secondary = css` - ${Base}; - ${Border}; - color: ${p => p.theme.colors.text}; - background-color: ${p => p.theme.colors.background}; -` - -export const Button = styled.button` - ${p => p.secondary ? css`${Secondary}` : css`${Primary}` } -` - -export const SubmitButton = styled.input` - ${Primary} -` \ No newline at end of file -- cgit v1.2.3