aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/network.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-07 06:37:48 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-12 10:16:43 +0800
commit6a3c59e409cf4467ca2c59a0303f2df85ffde73f (patch)
treebcc28a8afdbe6e0cbc9fa5f6ac2a8b17cd0a4fc1 /ui/app/components/network.js
parent663cb758b345d7138b9e9c68489e1859dbfaa78e (diff)
downloadtangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar.gz
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar.bz2
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar.lz
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar.xz
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.tar.zst
tangerine-wallet-browser-6a3c59e409cf4467ca2c59a0303f2df85ffde73f.zip
Highlighted circle icons for the network menu.
Diffstat (limited to 'ui/app/components/network.js')
-rw-r--r--ui/app/components/network.js21
1 files changed, 17 insertions, 4 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index ba1d0ea11..9133c78e3 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -1,6 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
+const NetworkDropdownIcon = require('./dropdowns/components/network-dropdown-icon')
module.exports = Network
@@ -68,7 +69,10 @@ Network.prototype.render = function () {
switch (iconName) {
case 'ethereum-network':
return h('.network-indicator', [
- h('.menu-icon.diamond'),
+ h(NetworkDropdownIcon, {
+ backgroundColor: '#038789', // $blue-lagoon
+ nonSelectBackgroundColor: '#15afb2'
+ }),
h('.network-name', {
style: {
color: '#039396',
@@ -77,7 +81,10 @@ Network.prototype.render = function () {
])
case 'ropsten-test-network':
return h('.network-indicator', [
- h('.menu-icon.red-dot'),
+ h(NetworkDropdownIcon, {
+ backgroundColor: '#e91550', // $crimson
+ nonSelectBackgroundColor: '#ec2c50',
+ }),
h('.network-name', {
style: {
color: '#ff6666',
@@ -86,7 +93,10 @@ Network.prototype.render = function () {
])
case 'kovan-test-network':
return h('.network-indicator', [
- h('.menu-icon.hollow-diamond'),
+ h(NetworkDropdownIcon, {
+ backgroundColor: '#690496', // $purple
+ nonSelectBackgroundColor: '#b039f3',
+ }),
h('.network-name', {
style: {
color: '#690496',
@@ -95,7 +105,10 @@ Network.prototype.render = function () {
])
case 'rinkeby-test-network':
return h('.network-indicator', [
- h('.menu-icon.golden-square'),
+ h(NetworkDropdownIcon, {
+ backgroundColor: '#ebb33f', // $tulip-tree
+ nonSelectBackgroundColor: '#ecb23e',
+ }),
h('.network-name', {
style: {
color: '#e7a218',