diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-08-10 00:48:08 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-08-10 00:48:08 +0800 |
commit | 8acb3e6007ee62e4f7f1795478de60b614947d96 (patch) | |
tree | 973b4a17b27fc86709878325a2c622cf498d28b4 /ui/app/config.js | |
parent | fd37f5db65f2abae1bfe6b07b91d41a153f16ba7 (diff) | |
download | tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar.gz tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar.bz2 tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar.lz tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar.xz tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.tar.zst tangerine-wallet-browser-8acb3e6007ee62e4f7f1795478de60b614947d96.zip |
Enable full listing of supported currencies by Cryptonator.
Diffstat (limited to 'ui/app/config.js')
-rw-r--r-- | ui/app/config.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/ui/app/config.js b/ui/app/config.js index 9178c199c..664bcd2a7 100644 --- a/ui/app/config.js +++ b/ui/app/config.js @@ -3,6 +3,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const connect = require('react-redux').connect const actions = require('./actions') +const currencies = require('./conversion-util').availableCurrencies.rows const Select = require('react-select') module.exports = connect(mapStateToProps)(ConfigScreen) @@ -103,7 +104,7 @@ ConfigScreen.prototype.render = function () { function currentConversionInformation (metamaskState, state) { var currentFiat = metamaskState.currentFiat return h('div'), [ - h('span', {style: { fontWeight: 'bold', paddingRight: '10px'}}, "Current Fiat"), + h('span', {style: { fontWeight: 'bold', paddingRight: '10px'}}, 'Current Conversion'), h('select#currentFiat', { onChange (event) { event.preventDefault() @@ -113,11 +114,14 @@ function currentConversionInformation (metamaskState, state) { }, value: currentFiat, defaultValue: currentFiat, - }, [ - h('option', {key: 'USD', value: 'USD'}, 'USD'), - h('option', {key: 'EUR', value: 'EUR'}, 'EUR'), - h('option', {key: 'JPY', value: 'JPY'}, 'JPY'), - ] + }, currencies.map((currency) => { + return h('option', {key: currency.code, value: currency.code}, `${currency.code} - ${currency.name}`) + }) + // [ + // h('option', {key: 'USD', value: 'USD'}, 'USD'), + // h('option', {key: 'EUR', value: 'EUR'}, 'EUR'), + // h('option', {key: 'JPY', value: 'JPY'}, 'JPY'), + // ] ), ] } |