feat: Show training wheels

This commit is contained in:
Alexander Polynomdivision
2018-10-03 14:02:20 +02:00
parent 4ba879c531
commit 7fc1d8a058
5 changed files with 135 additions and 2 deletions

View File

@@ -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