diff --git a/src/api.js b/src/api.js index 68ec4e50..d70011bd 100644 --- a/src/api.js +++ b/src/api.js @@ -1,5 +1,10 @@ import { examRequiresAccessToken, store } from './data'; +// TODO: Come back to this later after figuring out how to merge first and unit testing +// const { +// sidebarIsOpen, +// } = useSelector(state => state.exams); + export function isExam() { const { exam } = store.getState().examState; return !!exam?.id; diff --git a/src/data/slice.js b/src/data/slice.js index 5075232a..c049b536 100644 --- a/src/data/slice.js +++ b/src/data/slice.js @@ -107,7 +107,7 @@ export const { } = examSlice.actions; export const { - reducer + reducer, } = examSlice; export default examSlice.reducer; diff --git a/src/data/store.js b/src/data/store.js index 916de85c..70cd3f0f 100644 --- a/src/data/store.js +++ b/src/data/store.js @@ -1,8 +1,8 @@ -import { configureStore } from '@reduxjs/toolkit'; -import examReducer from './slice'; +// import { configureStore } from '@reduxjs/toolkit'; +// import examReducer from './slice'; -export default configureStore({ - reducer: { - examState: examReducer, - }, -}); +// export default configureStore({ +// reducer: { +// examState: examReducer, +// }, +// }); diff --git a/src/index.jsx b/src/index.jsx index b44fee8e..f87c5372 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -7,4 +7,4 @@ export { fetchExamAccess, } from './api'; export { store } from './data'; -export { reducer } from './data/slice' +export { reducer } from './data/slice';