From 736ad23f1c7b5fe9c11aedaaf0694f040dd81f0c Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Fri, 14 Apr 2017 01:17:22 -0500 Subject: [PATCH] Create "config" redux action file the including following actions: - CHANGE_LANGUAGE - TOGGLE_LANGUAGE_DROPDOWN - CHANGE_NODE - TOGGLE_NODE_DROPDOWN --- common/actions/config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 common/actions/config.js diff --git a/common/actions/config.js b/common/actions/config.js new file mode 100644 index 00000000..933f8048 --- /dev/null +++ b/common/actions/config.js @@ -0,0 +1,24 @@ +export const CONFIG_LANGUAGE_CHANGE = 'CONFIG_LANGUAGE_CHANGE'; +export const CONFIG_LANGUAGE_DROPDOWN_TOGGLE = 'CONFIG_LANGUAGE_DROPDOWN_TOGGLE'; +export const CONFIG_NODE_CHANGE = 'CONFIG_NODE_CHANGE'; +export const CONFIG_NODE_DROPDOWN_TOGGLE = 'CONFIG_NODE_DROPDOWN_TOGGLE'; + + +export const CHANGE_LANGUAGE = (index) => ({ + type: CONFIG_LANGUAGE_CHANGE, index: index +}) + + +export const TOGGLE_LANGUAGE_DROPDOWN = () => ({ + type: CONFIG_LANGUAGE_DROPDOWN_TOGGLE +}) + + +export const CHANGE_NODE = (index) => ({ + type: CONFIG_NODE_CHANGE, index: index +}) + + +export const TOGGLE_NODE_DROPDOWN = () => ({ + type: CONFIG_NODE_DROPDOWN_TOGGLE +}) \ No newline at end of file