Target tracking location, BoundHeader, WorkItem page done.

This commit is contained in:
John Lyon-Smith
2018-04-04 14:25:58 -07:00
parent 72af9a7035
commit e6bd1f8fed
18 changed files with 202 additions and 29 deletions

View File

@@ -8,7 +8,6 @@ export class BoundButton extends React.Component {
name: PropTypes.string.isRequired,
title: PropTypes.string,
binder: PropTypes.object.isRequired,
submit: PropTypes.string,
onPress: PropTypes.func,
width: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
}
@@ -16,7 +15,7 @@ export class BoundButton extends React.Component {
constructor(props) {
super(props)
let { name, binder } = this.props
const { name, binder } = this.props
binder.addListener(name, this.updateValue)
this.state = binder.getFieldState(name)
@@ -40,7 +39,7 @@ export class BoundButton extends React.Component {
}
render() {
const { name, title, submit, width, onPress } = this.props
const { name, title, width, onPress } = this.props
const { visible, disabled } = this.state
if (!visible) {