|
|
@ -5,7 +5,6 @@ import { COLORS } from '../lib/constants'
|
|
|
|
const Button = ({
|
|
|
|
const Button = ({
|
|
|
|
id,
|
|
|
|
id,
|
|
|
|
onClick = () => {},
|
|
|
|
onClick = () => {},
|
|
|
|
onBlur,
|
|
|
|
|
|
|
|
className = '',
|
|
|
|
className = '',
|
|
|
|
background = COLORS.BLACK,
|
|
|
|
background = COLORS.BLACK,
|
|
|
|
color = COLORS.SECONDARY,
|
|
|
|
color = COLORS.SECONDARY,
|
|
|
@ -22,14 +21,7 @@ const Button = ({
|
|
|
|
padding = 0,
|
|
|
|
padding = 0,
|
|
|
|
margin = 0
|
|
|
|
margin = 0
|
|
|
|
}) => (
|
|
|
|
}) => (
|
|
|
|
<button
|
|
|
|
<button id={id} onClick={onClick} className={className} disabled={disabled} style={style}>
|
|
|
|
id={id}
|
|
|
|
|
|
|
|
onClick={onClick}
|
|
|
|
|
|
|
|
onBlur={onBlur}
|
|
|
|
|
|
|
|
className={className}
|
|
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
|
|
style={style}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{children}
|
|
|
|
{children}
|
|
|
|
<style jsx>
|
|
|
|
<style jsx>
|
|
|
|
{`
|
|
|
|
{`
|
|
|
|