From 59f7ef205df4750063c755a7b8834bfd7509da83 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 21 Oct 2017 13:26:36 +0900 Subject: add addon actions --- src/content/actions/addon.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/content/actions/addon.js (limited to 'src/content/actions/addon.js') diff --git a/src/content/actions/addon.js b/src/content/actions/addon.js new file mode 100644 index 0000000..8d38025 --- /dev/null +++ b/src/content/actions/addon.js @@ -0,0 +1,15 @@ +import actions from 'content/actions'; + +const enable = () => { + return { type: actions.ADDON_ENABLE }; +}; + +const disable = () => { + return { type: actions.ADDON_DISABLE }; +}; + +const toggleEnabled = () => { + return { type: actions.ADDON_TOGGLE_ENABLED }; +}; + +export { enable, disable, toggleEnabled }; -- cgit v1.2.3