chore: use alternate syntax for styled

This commit is contained in:
fragosti
2018-10-24 13:44:00 -07:00
parent c7a063ca47
commit 379f7c7883
4 changed files with 16 additions and 4 deletions

View File

@@ -12,7 +12,10 @@ export interface InputProps {
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
}
export const Input = styled<InputProps, 'input'>('input')`
export const Input =
styled.input <
InputProps >
`
font-size: ${props => props.fontSize};
width: ${props => props.width};
padding: 0.1em 0em;