aboutsummaryrefslogtreecommitdiff
path: root/src/store/reducers
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-02-11 07:03:02 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-02-11 07:03:02 -0800
commite95ff2d483903b4d390c8dd0edf4ab60561b8334 (patch)
tree2a315d8aa817785bc47ad2ef50ee32130f2d0ccb /src/store/reducers
parent88433cda2938a2fa4f6bf3e4b2282fe0095dfe71 (diff)
Create thunk action + reducer to set new variable
Diffstat (limited to 'src/store/reducers')
-rw-r--r--src/store/reducers/userReducer.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/store/reducers/userReducer.ts b/src/store/reducers/userReducer.ts
index 1e575339..b353cc60 100644
--- a/src/store/reducers/userReducer.ts
+++ b/src/store/reducers/userReducer.ts
@@ -1,4 +1,4 @@
-import {createSlice, Action} from '@reduxjs/toolkit';
+import {createSlice} from '@reduxjs/toolkit';
import {NO_USER_DATA} from '../initialStates';
/**
@@ -46,6 +46,10 @@ const userDataSlice = createSlice({
state.profile.profile_completion_stage = action.payload.stage;
},
+ spSwipeTutorialUpdated: (state, action) => {
+ state.profile.sp_swipe_tutorial = action.payload.sp_swipe_tutorial;
+ },
+
setIsOnboardedUser: (state, action) => {
state.isOnboardedUser = action.payload.isOnboardedUser;
},
@@ -68,5 +72,6 @@ export const {
setIsOnboardedUser,
setNewNotificationReceived,
setReplyPosted,
+ spSwipeTutorialUpdated,
} = userDataSlice.actions;
export const userDataReducer = userDataSlice.reducer;