feat: bill picker available on cashout and commission screens

This commit is contained in:
Sérgio Salgado 2021-03-25 19:46:57 +00:00 committed by Josh Harvey
parent c2e8ed612b
commit 3572d27551
10 changed files with 86 additions and 44 deletions

View file

@ -0,0 +1,12 @@
import * as R from 'ramda'
const getBillOptions = R.curry((locale, denomiations) => {
const currency = R.prop('fiatCurrency')(locale)
return R.compose(
R.map(code => ({ code, display: code })),
R.keys,
R.path([currency])
)(denomiations)
})
export { getBillOptions }