Linter fixes
This commit is contained in:
@@ -3,19 +3,18 @@ import styled from 'styled-components';
|
|||||||
|
|
||||||
import { colors } from 'ts/style/colors';
|
import { colors } from 'ts/style/colors';
|
||||||
|
|
||||||
|
|
||||||
interface ButtonInterface {
|
interface ButtonInterface {
|
||||||
children: Node | string;
|
children: Node | string;
|
||||||
transparent?: any;
|
transparent?: any;
|
||||||
inline?: any;
|
inline?: any;
|
||||||
href?: string,
|
href?: string;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Button: React.StatelessComponent<ButtonInterface> = props => {
|
export const Button: React.StatelessComponent<ButtonInterface> = props => {
|
||||||
const { onClick } = props;
|
const { onClick } = props;
|
||||||
const Component = onClick ? StyledButton : StyledButton.withComponent('a');
|
const Component = onClick ? StyledButton : StyledButton.withComponent('a');
|
||||||
return <Component {...props}>{ props.children }</Component>;
|
return <Component {...props}>{props.children}</Component>;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Added this, & + & doesnt really work since we switch with element types...
|
// Added this, & + & doesnt really work since we switch with element types...
|
||||||
|
Reference in New Issue
Block a user