aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-09 04:37:16 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-09 04:37:16 +0800
commitaab0fda9acf58c638a03a43de4260c079adf258f (patch)
treef721c850bcf53f2b1b8b06065d16c00bdce84609 /ui/app/actions.js
parentda51f56df9dfdc67f6ac3e37a3a248f749230c10 (diff)
downloadtangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.gz
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.bz2
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.lz
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.xz
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.tar.zst
tangerine-wallet-browser-aab0fda9acf58c638a03a43de4260c079adf258f.zip
Add actions and reducers for global modal
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 13a767343..69fc46ca4 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -5,6 +5,11 @@ var actions = {
GO_HOME: 'GO_HOME',
goHome: goHome,
+ // modal state
+ MODAL_OPEN: 'UI_MODAL_OPEN',
+ MODAL_CLOSE: 'UI_MODAL_CLOSE',
+ showModal: showModal,
+ hideModal: hideModal,
// sidebar state
SIDEBAR_OPEN: 'UI_SIDEBAR_OPEN',
SIDEBAR_CLOSE: 'UI_SIDEBAR_CLOSE',
@@ -768,6 +773,18 @@ function useEtherscanProvider () {
}
}
+function showModal () {
+ return {
+ type: actions.MODAL_OPEN,
+ }
+}
+
+function hideModal () {
+ return {
+ type: actions.MODAL_CLOSE,
+ }
+}
+
function showSidebar () {
return {
type: actions.SIDEBAR_OPEN,