diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-12-21 08:32:00 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-12-21 08:32:00 +0800 |
commit | ea781b8850cda274d24e4cc5f196dfb7e5b37732 (patch) | |
tree | 4d34321adf0bebe9d1b8a65815dc053b485dbf14 /packages/website/ts/components/ui/input.tsx | |
parent | ba7c8d924429a96f6d2b3280faa6b508b582f557 (diff) | |
download | dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar.gz dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar.bz2 dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar.lz dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar.xz dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.tar.zst dexon-sol-tools-ea781b8850cda274d24e4cc5f196dfb7e5b37732.zip |
feat: remove unused files
Diffstat (limited to 'packages/website/ts/components/ui/input.tsx')
-rw-r--r-- | packages/website/ts/components/ui/input.tsx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/packages/website/ts/components/ui/input.tsx b/packages/website/ts/components/ui/input.tsx deleted file mode 100644 index d21b9fd0e..000000000 --- a/packages/website/ts/components/ui/input.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { colors } from '@0x/react-shared'; -import * as React from 'react'; -import { styled } from 'ts/style/theme'; - -export interface InputProps { - className?: string; - value?: string; - width?: string; - fontSize?: string; - fontColor?: string; - border?: string; - padding?: string; - placeholderColor?: string; - placeholder?: string; - backgroundColor?: string; - onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; -} - -const PlainInput: React.StatelessComponent<InputProps> = ({ value, className, placeholder, onChange }) => ( - <input className={className} value={value} onChange={onChange} placeholder={placeholder} /> -); - -export const Input = styled(PlainInput)` - font-size: ${props => props.fontSize}; - width: ${props => props.width}; - padding: ${props => props.padding}; - border-radius: 3px; - box-sizing: border-box; - font-family: 'Roboto Mono'; - color: ${props => props.fontColor}; - border: ${props => props.border}; - outline: none; - background-color: ${props => props.backgroundColor}; - &::placeholder { - color: ${props => props.placeholderColor}; - } -`; - -Input.defaultProps = { - width: 'auto', - backgroundColor: colors.white, - fontColor: colors.darkestGrey, - placeholderColor: colors.darkGrey, - fontSize: '12px', - border: 'none', - padding: '0.8em 1.2em', -}; - -Input.displayName = 'Input'; |