4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fix redux-thunk

This commit is contained in:
AlphaX-Projects 2023-12-08 11:23:53 +01:00
parent 5e075eaf1e
commit 7d8d062cf3
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import {combineReducers} from 'redux'
import { combineReducers } from 'redux'
import app from './app/app-reducer.js'
import config from './config/config-reducer.js'
@ -8,4 +8,4 @@ export default combineReducers({
user,
app,
config
})
})

View File

@ -1,13 +1,13 @@
import {applyMiddleware, compose, createStore} from 'redux'
import thunk from 'redux-thunk'
import { thunk } from 'redux-thunk'
import reducers from './redux/reducers.js'
import rootReducer from './redux/reducers.js'
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
export const store = createStore(
reducers,
rootReducer,
composeEnhancers(
applyMiddleware(thunk)
)
)
)