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
|
|
@ -19,9 +19,16 @@ class Subscriptions extends Component {
|
|||
constructor(props) {
|
||||
super(props);
|
||||
this.t = props.t;
|
||||
this.state = {
|
||||
action: action.view
|
||||
};
|
||||
if (props.location.state) {
|
||||
const received = props.location.state;
|
||||
props.history.push(`${this.props.match.url}/new`, {
|
||||
location: received.location,
|
||||
distance: received.distance,
|
||||
center: [received.location.lat, received.location.lon]
|
||||
});
|
||||
}
|
||||
this.state = {};
|
||||
this.state.action = action.view;
|
||||
this.onViewportChanged = this.onViewportChanged.bind(this);
|
||||
this.onFstBtn = this.onFstBtn.bind(this);
|
||||
this.onSndBtn = this.onSndBtn.bind(this);
|
||||
|
|
@ -109,7 +116,8 @@ Subscriptions.propTypes = {
|
|||
subscriptions: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
match: PropTypes.object.isRequired,
|
||||
t: PropTypes.func.isRequired,
|
||||
history: PropTypes.object.isRequired
|
||||
history: PropTypes.object.isRequired,
|
||||
location: PropTypes.object
|
||||
};
|
||||
|
||||
export default translate([], { wait: true })(withTracker(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue