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