Improved subs form

This commit is contained in:
vjrj 2017-12-06 17:10:47 +01:00
parent b40309e80b
commit 93d9ca43f1
8 changed files with 81 additions and 71 deletions

View file

@ -10,24 +10,20 @@ class Sandbox extends React.Component {
constructor(props) {
super(props);
this.state = {
lat: 0,
lng: 0
init: false
};
}
onSliderChange = (value) => {
this.setState(update(this.state, {$merge: {distance: value}}));
componentDidMount = () => {
this.setState({init: true});
}
render() {
return (
<div>
<FireSubscription />
</div>
)
}
}
export default translate([], { wait: true }) (Sandbox);