2018-12-11 09:47:44 +03:00
|
|
|
import './styles/members.css';
|
|
|
|
import { Component } from 'preact';
|
|
|
|
|
2019-02-07 12:39:55 +03:00
|
|
|
import MembersProvider from './components/MembersProvider';
|
|
|
|
import Modal from './components/Modal';
|
2018-12-11 09:47:44 +03:00
|
|
|
|
|
|
|
export default class App extends Component {
|
|
|
|
constructor() {
|
|
|
|
super();
|
2019-02-07 12:39:55 +03:00
|
|
|
const apiUrl = window.location.href.substring(0, window.location.href.indexOf('/members/auth'));
|
2018-12-11 09:47:44 +03:00
|
|
|
|
2019-02-07 12:39:55 +03:00
|
|
|
this.state = {
|
|
|
|
apiUrl
|
2018-12-11 09:47:44 +03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2019-02-07 12:39:55 +03:00
|
|
|
<MembersProvider apiUrl={ this.state.apiUrl }>
|
|
|
|
<Modal />
|
|
|
|
</MembersProvider>
|
2018-12-11 09:47:44 +03:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|