Add sample JoyRide walkthrough.

This commit is contained in:
Patrick Fic
2024-03-12 10:48:27 -04:00
parent d9d30b59f0
commit 5623497e32
9 changed files with 339 additions and 97 deletions

View File

@@ -15,6 +15,8 @@ const INITIAL_STATE = {
},
jobReadOnly: false,
partnerVersion: null,
enableJoyRide: false,
joyRideSteps: []
};
const applicationReducer = (state = INITIAL_STATE, action) => {
@@ -87,6 +89,12 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
case ApplicationActionTypes.SET_PROBLEM_JOBS: {
return {...state, problemJobs: action.payload};
}
case ApplicationActionTypes.SET_JOYRIDE_STEPS: {
return {...state, enableJoyRide:true, joyRideSteps: action.payload}
}
case ApplicationActionTypes.SET_JOYRIDE_FINISHED: {
return {...state, enableJoyRide:false, joyRideSteps: []}
}
default:
return state;
}