Login/Auth and pariticipate. Telegram auth (wip)
This commit is contained in:
parent
91b4197b04
commit
4227389a67
14 changed files with 161 additions and 48 deletions
|
|
@ -11,7 +11,15 @@ class NewSubscription extends Component {
|
|||
const pushState = this.props.location.state;
|
||||
this.state = {
|
||||
center: pushState ? pushState.center : [null, null],
|
||||
zoom: pushState ? pushState.zoom : null
|
||||
zoom: pushState ? pushState.zoom : null,
|
||||
// we have a subscription from home?
|
||||
doc: pushState && pushState.location ? {
|
||||
location: {
|
||||
lat: pushState.location.lat,
|
||||
lot: pushState.location.lon
|
||||
},
|
||||
distance: pushState.distance
|
||||
} : undefined
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -24,6 +32,7 @@ class NewSubscription extends Component {
|
|||
history={history}
|
||||
center={this.state.center}
|
||||
zoom={this.state.zoom}
|
||||
doc={this.state.doc}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue