-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ca2f8a
commit 7e50d1a
Showing
10 changed files
with
147 additions
and
45 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
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
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
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
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
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
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
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,39 @@ | ||
// src/slices/popupDetailSlice.ts | ||
import {createSlice, PayloadAction} from '@reduxjs/toolkit'; | ||
import {DetailPopUpDataNonPublic} from '../../types/DetailPopUpDataNonPublic'; | ||
|
||
interface PopupDetailState { | ||
data: DetailPopUpDataNonPublic | null; | ||
loading: boolean; | ||
error: string | null; | ||
} | ||
|
||
const initialState: PopupDetailState = { | ||
data: null, | ||
loading: false, | ||
error: null, | ||
}; | ||
|
||
const popupDetailSlice = createSlice({ | ||
name: 'popupDetail', | ||
initialState, | ||
reducers: { | ||
setPopupDetailData( | ||
state, | ||
action: PayloadAction<DetailPopUpDataNonPublic | null>, | ||
) { | ||
state.data = action.payload; | ||
}, | ||
setPopupDetailLoading(state, action: PayloadAction<boolean>) { | ||
state.loading = action.payload; | ||
}, | ||
setPopupDetailError(state, action: PayloadAction<string | null>) { | ||
state.error = action.payload; | ||
}, | ||
}, | ||
}); | ||
|
||
export const {setPopupDetailData, setPopupDetailLoading, setPopupDetailError} = | ||
popupDetailSlice.actions; | ||
|
||
export default popupDetailSlice; |
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,13 @@ | ||
// src/redux/slices/reviewSubmittedSlice.ts | ||
import {createSlice} from '@reduxjs/toolkit'; | ||
|
||
const reviewSubmittedSlice = createSlice({ | ||
name: 'reviewSubmitted', | ||
initialState: false, | ||
reducers: { | ||
setReviewSubmitted: (state, action) => action.payload, | ||
}, | ||
}); | ||
|
||
export const {setReviewSubmitted} = reviewSubmittedSlice.actions; | ||
export default reviewSubmittedSlice; |
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