Linting + typing
This commit is contained in:
@@ -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>`
|
||||||
|
Reference in New Issue
Block a user