mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
cropper: separate crop panel
This commit is contained in:
parent
6f21b909c0
commit
b85141046d
5 changed files with 54 additions and 46 deletions
|
@ -4,15 +4,12 @@ import { persistStore, persistReducer } from 'redux-persist';
|
|||
import storage from 'redux-persist/lib/storage';
|
||||
import createSagaMiddleware from 'redux-saga';
|
||||
|
||||
// import createHistory from 'history/createBrowserHistory';
|
||||
// import { routerReducer, routerMiddleware } from 'react-router-redux';
|
||||
|
||||
import { userReducer } from '$redux/user/reducer';
|
||||
import { userSaga } from '$redux/user/sagas';
|
||||
|
||||
const userPersistConfig = {
|
||||
key: 'user',
|
||||
whitelist: ['user'],
|
||||
whitelist: ['user', 'logo'],
|
||||
storage,
|
||||
};
|
||||
|
||||
|
@ -39,13 +36,9 @@ export const store = createStore(
|
|||
);
|
||||
|
||||
export function configureStore() {
|
||||
// run sagas
|
||||
sagaMiddleware.run(userSaga);
|
||||
|
||||
const persistor = persistStore(store);
|
||||
|
||||
return {
|
||||
store,
|
||||
persistor
|
||||
};
|
||||
return { store, persistor };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue