Adding some more controls & other clean-up
This commit is contained in:
19
website/src/ui/Button.js
Normal file
19
website/src/ui/Button.js
Normal 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)
|
||||
Reference in New Issue
Block a user