You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
585 B
TypeScript

import { ShortcutsActions, ShortcutsActionsTypes } from 'actions/shortcuts-actions';
import { ShortcutsState } from './interfaces';
const defaultState: ShortcutsState = {
visibleShortcutsHelp: false,
};
export default (state = defaultState, action: ShortcutsActions): ShortcutsState => {
switch (action.type) {
case ShortcutsActionsTypes.SWITCH_SHORTCUT_DIALOG: {
return {
...state,
visibleShortcutsHelp: !state.visibleShortcutsHelp,
};
}
default: {
return state;
}
}
};