Adding some more controls & other clean-up

This commit is contained in:
John Lyon-Smith
2018-02-25 11:49:47 -08:00
parent 96fc7cb2c9
commit c60bfcedf8
44 changed files with 307 additions and 550 deletions

19
website/src/ui/Button.js Normal file
View File

@@ -0,0 +1,19 @@
import Radium from 'radium'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import style from './Button.style'
class Button extends Component {
static propTypes = {
submit: PropTypes.string,
children: PropTypes.node
}
render() {
return (
<button type={this.props.submit ? 'submit' : 'button'} style={style.base}>{this.props.children}</button>
)
}
}
export default Radium(Button)