mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Enable full listing of supported currencies by Cryptonator.
This commit is contained in:
parent
fd37f5db65
commit
8acb3e6007
1
app/currencies.json
Normal file
1
app/currencies.json
Normal file
File diff suppressed because one or more lines are too long
@ -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'),
|
||||
// ]
|
||||
),
|
||||
]
|
||||
}
|
||||
|
5
ui/app/conversion-util.js
Normal file
5
ui/app/conversion-util.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user