Browse Source

Fix Select wallet component

master
Loëck Vézien 7 years ago
parent
commit
acb1bbd68e
No known key found for this signature in database GPG Key ID: CBCDCE384E853AC4
  1. 15
      src/components/modals/AddAccount/index.js

15
src/components/modals/AddAccount/index.js

@ -26,6 +26,13 @@ import Select from 'components/base/Select'
import CreateAccount from './CreateAccount' import CreateAccount from './CreateAccount'
import ImportAccounts from './ImportAccounts' import ImportAccounts from './ImportAccounts'
const currencies = [
{
key: 'btc',
name: 'Bitcoin',
},
]
const Steps = { const Steps = {
chooseWallet: (props: Object) => ( chooseWallet: (props: Object) => (
<form onSubmit={props.onSubmit}> <form onSubmit={props.onSubmit}>
@ -36,12 +43,8 @@ const Steps = {
placeholder="Choose a wallet..." placeholder="Choose a wallet..."
onChange={item => props.onChangeInput('wallet')(item.key)} onChange={item => props.onChangeInput('wallet')(item.key)}
renderSelected={item => item.name} renderSelected={item => item.name}
items={[ items={currencies}
{ value={currencies.find(c => c.key === props.value.wallet)}
key: 'btc',
name: 'Bitcoin',
},
]}
/> />
</Box> </Box>
<Box horizontal justify="flex-end"> <Box horizontal justify="flex-end">

Loading…
Cancel
Save