allow id's in <Button />

main
Mike Fix 6 years ago
parent 4d91c5d4c9
commit cc593a7968

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

Loading…
Cancel
Save