Fixed eslint errors.

This commit is contained in:
orangemug
2017-11-08 08:47:36 +00:00
parent e0b7cdf9dd
commit 8234c51412
17 changed files with 127 additions and 65 deletions

View File

@@ -13,6 +13,7 @@ class DynamicArrayInput extends React.Component {
type: PropTypes.string,
default: PropTypes.array,
onChange: PropTypes.func,
style: PropTypes.object,
}
changeValue(idx, newValue) {
@@ -84,10 +85,15 @@ class DynamicArrayInput extends React.Component {
}
}
function DeleteValueButton(props) {
class DeleteValueButton extends React.Component {
static propTypes = {
onClick: PropTypes.func,
}
render() {
return <Button
className="maputnik-delete-stop"
onClick={props.onClick}
onClick={this.props.onClick}
>
<DocLabel
label={<DeleteIcon />}
@@ -95,5 +101,6 @@ function DeleteValueButton(props) {
/>
</Button>
}
}
export default DynamicArrayInput