fix: rework wallet screen
This commit is contained in:
parent
1f7ae74b42
commit
1f6d272aa0
103 changed files with 2094 additions and 3892 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue