|
@@ -14,8 +14,11 @@ const createReducer = (handlers: {[key: string]: any}) => (
|
|
|
};
|
|
|
|
|
|
export default createReducer({
|
|
|
- [types.SWITCH_NAVBAR]: mainActions.setNavbarState,
|
|
|
- [types.SWITCH_SIDEBAR]: mainActions.setSidebarState,
|
|
|
+ [types.TOGGLE_DISPLAY_MODE]: mainActions.toggleDisplayMode,
|
|
|
+ [types.SET_NAVBAR]: mainActions.setNavbarState,
|
|
|
+ [types.SET_SIDEBAR]: mainActions.setSidebarState,
|
|
|
+ [types.SET_MARKUP_TOOL]: mainActions.setMarkupTool,
|
|
|
+ [types.SET_INFO]: mainActions.setInfo,
|
|
|
|
|
|
[types.SET_CURRENT_PAGE]: pdfActions.setCurrentPage,
|
|
|
[types.SET_TOTAL_PAGE]: pdfActions.setTotalPage,
|
|
@@ -24,4 +27,6 @@ export default createReducer({
|
|
|
[types.SET_VIEWPORT]: pdfActions.setViewport,
|
|
|
[types.CHANGE_SCALE]: pdfActions.changeScale,
|
|
|
[types.CHANGE_ROTATE]: pdfActions.changeRotate,
|
|
|
+ [types.ADD_ANNOTATIONS]: pdfActions.addAnnotation,
|
|
|
+ [types.UPDATE_ANNOTATIONS]: pdfActions.updateAnnotation,
|
|
|
});
|