aboutsummaryrefslogtreecommitdiffstats
path: root/graphgraph-fe/src/GraphHops.js
diff options
context:
space:
mode:
Diffstat (limited to 'graphgraph-fe/src/GraphHops.js')
-rw-r--r--graphgraph-fe/src/GraphHops.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/graphgraph-fe/src/GraphHops.js b/graphgraph-fe/src/GraphHops.js
index e835182..cd5763a 100644
--- a/graphgraph-fe/src/GraphHops.js
+++ b/graphgraph-fe/src/GraphHops.js
@@ -7,7 +7,7 @@ var createNumInput = function (label, callback, current) {
return (
<div>
<Label>{label}</Label>
- <NumericInput onChange={callback} min={0} max={500} value={current} className="hops-input-field" />
+ <NumericInput onChange={callback} min={1} max={500} value={current} className="hops-input-field" />
</div>
)
}
@@ -34,7 +34,6 @@ class GraphHops extends React.Component {
var s = this.state
s[hopsName] = num
this.setState(s)
-
this.props.updateHops(this.state.parentHops, this.state.cousinHops, this.state.childHops)
}
@@ -51,12 +50,11 @@ class GraphHops extends React.Component {
}
render () {
+ // {createNumInput('cousin hops', this.onChangeCousin, this.state.cousinHops)}
return (
<div className="hops-input">
{createNumInput('parent hops', this.onChangeParent, this.state.parentHops)}
- {createNumInput('cousin hops', this.onChangeCousin, this.state.cousinHops)}
{createNumInput('child hops', this.onChangeChild, this.state.childHops)}
-
</div>
)
}