aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-14 04:15:21 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-14 04:15:21 +0800
commit4cd33453dc14ae9e6a797c16cccb52598904941a (patch)
tree0fd04bb0f3a75b13a80af7e391183ac855c12aa3 /ui/app/actions.js
parente39c600a45a4cf28b5429231dd6c57442d467075 (diff)
downloadtangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.gz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.bz2
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.lz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.xz
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.tar.zst
tangerine-wallet-browser-4cd33453dc14ae9e6a797c16cccb52598904941a.zip
[WIP] Extract network dropdown into own component
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 69fc46ca4..ae6d92733 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -15,6 +15,11 @@ var actions = {
SIDEBAR_CLOSE: 'UI_SIDEBAR_CLOSE',
showSidebar: showSidebar,
hideSidebar: hideSidebar,
+ // network dropdown open
+ NETWORK_DROPDOWN_OPEN: 'UI_NETWORK_DROPDOWN_OPEN',
+ NETWORK_DROPDOWN_CLOSE: 'UI_NETWORK_DROPDOWN_CLOSE',
+ showNetworkDropdown: showNetworkDropdown,
+ hideNetworkDropdown: hideNetworkDropdown,
// menu state
getNetworkStatus: 'getNetworkStatus',
// transition state
@@ -773,6 +778,19 @@ function useEtherscanProvider () {
}
}
+function showNetworkDropdown () {
+ return {
+ type: actions.NETWORK_DROPDOWN_OPEN,
+ }
+}
+
+function hideNetworkDropdown () {
+ return {
+ type: actions.NETWORK_DROPDOWN_CLOSE,
+ }
+}
+
+
function showModal () {
return {
type: actions.MODAL_OPEN,