-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement redux functionality and update the "predict" page UI
- Loading branch information
1 parent
4e468b0
commit 9a6f9de
Showing
9 changed files
with
222 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { configureStore } from '@reduxjs/toolkit' | ||
import feedbackReducer from '../features/feedback/feedbackSlice' | ||
|
||
export const store = configureStore({ | ||
reducer: feedbackReducer, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { createSlice} from '@reduxjs/toolkit' | ||
|
||
// Initial state | ||
const initialState = { | ||
feedbacks: '', | ||
} | ||
|
||
export const feedbackSlice = createSlice({ | ||
name: 'feedback', | ||
initialState, | ||
reducers: { | ||
feedbackState:(state,action) => { | ||
state.feedbacks = action.payload; | ||
} | ||
} | ||
}) | ||
|
||
|
||
export const {feedbackState} = feedbackSlice.actions; | ||
|
||
export default feedbackSlice.reducer; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.