Linting + typing

This commit is contained in:
Fred Carlsen
2018-11-30 12:05:51 +01:00
parent 7161e8fed9
commit 849b744185

View File

@@ -6,6 +6,7 @@ import { colors } from 'ts/style/colors';
interface ButtonInterface {
children: Node | string;
transparent?: any;
hasIcon?: any;
inline?: any;
href?: string;
onClick?: () => void;
@@ -19,12 +20,12 @@ export const Button: React.StatelessComponent<ButtonInterface> = props => {
// Added this, & + & doesnt really work since we switch with element types...
export const ButtonWrap = styled.div`
button + button,
a + a,
a + button,
button + a {
margin-left: 10px;
}
button + button,
a + a,
a + button,
button + a {
margin-left: 10px;
}
`;
const StyledButton = styled.button<ButtonInterface>`