mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
redux: auth and map init
This commit is contained in:
parent
dca55a3bc4
commit
df6202c32d
17 changed files with 325 additions and 163 deletions
19
src/index.js
19
src/index.js
|
@ -5,16 +5,23 @@ import ReactDOM from 'react-dom';
|
|||
import { App } from '$containers/App';
|
||||
import '$styles/main.less';
|
||||
|
||||
import 'raleway-cyrillic';
|
||||
import 'raleway-cyrillic/raleway.css';
|
||||
|
||||
// import { Provider } from 'react-redux';
|
||||
import { Provider } from 'react-redux';
|
||||
// import { ConnectedRouter } from 'react-router-redux';
|
||||
// import { PersistGate } from 'redux-persist/integration/react';
|
||||
// import configureStore, { history } from '$redux/store';
|
||||
// const { store, persistor } = configureStore();
|
||||
import { PersistGate } from 'redux-persist/integration/react';
|
||||
import { configureStore } from '$redux/store';
|
||||
|
||||
const { store, persistor } = configureStore();
|
||||
|
||||
export const Index = () => (
|
||||
<App />
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<App />
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
);
|
||||
|
||||
ReactDOM.render(<Index />, document.getElementById('index'));
|
||||
|
||||
// <PersistGate loading={null} persistor={persistor}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue