fix: rework wallet screen

This commit is contained in:
Taranto 2020-04-07 19:03:18 +01:00 committed by Josh Harvey
parent 1f7ae74b42
commit 1f6d272aa0
103 changed files with 2094 additions and 3892 deletions

View file

@ -15,7 +15,12 @@ const stripl = R.curry((q, str) =>
const filtered = key => filterByKey(R.startsWith(`${key}_`))
const stripped = key => mapKeys(stripl(`${key}_`))
const fromServer = key => R.compose(stripped(key), filtered(key))
const toServer = key => mapKeys(it => `${key}_${it}`)
const fromNamespace = R.curry((key, config) =>
R.compose(stripped(key), filtered(key))(config)
)
export { fromServer, toServer }
const toNamespace = R.curry((key, config) =>
mapKeys(it => `${key}_${it}`)(config)
)
export { fromNamespace, toNamespace }