diff options
Diffstat (limited to 'src/redux/preference/actions.js')
| -rw-r--r-- | src/redux/preference/actions.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/redux/preference/actions.js b/src/redux/preference/actions.js index 3183b81..8f115c0 100644 --- a/src/redux/preference/actions.js +++ b/src/redux/preference/actions.js @@ -1,4 +1,4 @@ -import { UPDATE_LANGUAGE, UPDATE_OPTIONS, UPDATE_VIEW_TYPE } from './types'; +import { UPDATE_DATE_TYPE, UPDATE_LANGUAGE, UPDATE_OPTIONS, UPDATE_VIEW_TYPE } from './types'; export const updateOptions = function (setting) { return dispatch => { @@ -26,3 +26,12 @@ export const updateLanguage = function (language) { }); }; }; + +export const updateDateType = function (dateType) { + return dispatch => { + dispatch({ + type: UPDATE_DATE_TYPE, + payload: dateType + }); + }; +}; |
