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' import { COLORS } from '../lib/constants'
const Button = ({ const Button = ({
id,
onClick = () => {}, onClick = () => {},
className = '', className = '',
background = COLORS.BLACK, background = COLORS.BLACK,
@ -21,7 +22,13 @@ const Button = ({
padding = 0, padding = 0,
margin = 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} {children}
<style jsx> <style jsx>
{` {`

Loading…
Cancel
Save