More work with subscriptions
This commit is contained in:
parent
316e14f0ea
commit
918103a17b
12 changed files with 29 additions and 14 deletions
|
|
@ -174,6 +174,6 @@ SelectionMap.propTypes = {
|
|||
};
|
||||
|
||||
export default translate([], { wait: true })(withTracker(props => ({
|
||||
center: props.center[0] ? props.center : geolocation.get(),
|
||||
center: props.center[0] !== null ? props.center : geolocation.get(),
|
||||
distance: props.distance
|
||||
}))(SelectionMap));
|
||||
|
|
|
|||
|
|
@ -13,3 +13,11 @@
|
|||
width: 85vw;
|
||||
}
|
||||
}
|
||||
|
||||
.dist-slider {
|
||||
margin: 0px 10px 30px 10px;
|
||||
}
|
||||
|
||||
.center-in-my-pos {
|
||||
margin: 10px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ import Terms from '../../pages/Terms/Terms';
|
|||
import Privacy from '../../pages/Privacy/Privacy';
|
||||
import License from '../../pages/License/License';
|
||||
import Credits from '../../pages/Credits/Credits';
|
||||
import FireSubscription from '../../pages/FireSubscription/FireSubscription';
|
||||
import ReSendEmail from '../../components/ReSendEmail/ReSendEmail';
|
||||
import FiresMap from '../../pages/FiresMap/FiresMap';
|
||||
import Sandbox from '../../pages/Sandbox/Sandbox';
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@ export default createContainer(({ match }) => {
|
|||
|
||||
return {
|
||||
loading: !subscription.ready(),
|
||||
doc: Subscriptions.findOne(subscriptionId)
|
||||
doc: Subscriptions.findOne(new Meteor.Collection.ObjectID(subscriptionId))
|
||||
};
|
||||
}, EditSubscription);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class FireSubscription extends React.Component {
|
|||
</Col>
|
||||
<Col xs={12} sm={12} md={6} lg={6} >
|
||||
<DistanceSlider onChange={value => this.onSliderChange(value)} />
|
||||
<Row className="align-items-center justify-content-center">
|
||||
<Row className="center-in-my-pos">
|
||||
<CenterInMyPosition onClick={viewport => this.centerOnUserLocation(viewport)} />
|
||||
</Row>
|
||||
</Col>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,6 @@ export default createContainer(({ match }) => {
|
|||
|
||||
return {
|
||||
loading: !subscription.ready(),
|
||||
doc: Subscriptions.findOne(subscriptionId)
|
||||
doc: Subscriptions.findOne(new Meteor.Collection.ObjectID(subscriptionId))
|
||||
};
|
||||
}, ViewSubscription);
|
||||
|
|
|
|||
|
|
@ -15,3 +15,7 @@ body {
|
|||
/* for fixed header */
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.navbar-nav .nav-link {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue