Target tracking location, BoundHeader, WorkItem page done.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user