feat: Show training wheels
This commit is contained in:
@@ -52,6 +52,7 @@ interface IState {
|
||||
popoverText: string;
|
||||
popoverColor: string;
|
||||
popoverTextColor: string;
|
||||
showHelp: boolean;
|
||||
};
|
||||
|
||||
topTen: ILearner[];
|
||||
@@ -110,6 +111,7 @@ const initialState: IState = {
|
||||
popoverText: "",
|
||||
popoverColor: "",
|
||||
popoverTextColor: "",
|
||||
showHelp: false,
|
||||
},
|
||||
|
||||
nextLevel: {} as ILevel,
|
||||
@@ -256,6 +258,12 @@ export function LateinicusApp(state: IState = initialState, action: any) {
|
||||
snackbar: action.state,
|
||||
}),
|
||||
});
|
||||
case Actions.REVIEW_SET_HELP:
|
||||
return Object.assign({}, state, {
|
||||
review: Object.assign({}, state.review, {
|
||||
showHelp: action.state,
|
||||
}),
|
||||
});
|
||||
default:
|
||||
// Ignore the initialization call to the reducer. By that we can
|
||||
// catch all actions that are not implemented
|
||||
|
||||
Reference in New Issue
Block a user