diff options
Diffstat (limited to 'app/javascript/themes/glitch/reducers/modal.js')
-rw-r--r-- | app/javascript/themes/glitch/reducers/modal.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/app/javascript/themes/glitch/reducers/modal.js b/app/javascript/themes/glitch/reducers/modal.js deleted file mode 100644 index 97fb31203..000000000 --- a/app/javascript/themes/glitch/reducers/modal.js +++ /dev/null @@ -1,17 +0,0 @@ -import { MODAL_OPEN, MODAL_CLOSE } from 'themes/glitch/actions/modal'; - -const initialState = { - modalType: null, - modalProps: {}, -}; - -export default function modal(state = initialState, action) { - switch(action.type) { - case MODAL_OPEN: - return { modalType: action.modalType, modalProps: action.modalProps }; - case MODAL_CLOSE: - return initialState; - default: - return state; - } -}; |