chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
12
packages/admin-ui/src/utils/bill-options.js
Normal file
12
packages/admin-ui/src/utils/bill-options.js
Normal 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: parseInt(code), display: code })),
|
||||
R.keys,
|
||||
R.path([currency, 'lengths'])
|
||||
)(denomiations)
|
||||
})
|
||||
|
||||
export { getBillOptions }
|
||||
Loading…
Add table
Add a link
Reference in a new issue