From c1e331e2c83585efbceaea956caf79b1061907c8 Mon Sep 17 00:00:00 2001 From: Camerin Figueroa Date: Tue, 23 Jul 2024 09:19:00 -0400 Subject: [PATCH] Fixed import bug --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 2ba1e5d..e2df7bb 100644 --- a/src/index.js +++ b/src/index.js @@ -3,13 +3,13 @@ import { createRoot } from 'react-dom/client'; import { Provider } from 'react-redux'; import { applyMiddleware, compose } from 'redux'; import { configureStore } from '@reduxjs/toolkit' -import reduxThunk from 'redux-thunk'; +import {thunk} from 'redux-thunk'; import App from './components/App'; import reducers from './reducers'; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; -const store = configureStore({reducer: reducers}, composeEnhancers(applyMiddleware(reduxThunk))); +const store = configureStore({reducer: reducers}, composeEnhancers(applyMiddleware(thunk))); const container = document.getElementById('root'); createRoot(container).render(