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

@ -2,6 +2,15 @@ import * as R from 'ramda'
import S from './sanctuary'
const formatLong = value => {
if (!value || value.length <= 20) return value
return `${value.slice(0, 8)}(...)${value.slice(
value.length - 8,
value.length
)}`
}
const toFirstLower = S.compose(S.joinWith(''))(R.adjust(0, S.toLower))
const toFirstUpper = S.compose(S.joinWith(''))(R.adjust(0, S.toUpper))
const onlyFirstToUpper = S.compose(toFirstUpper)(S.toLower)
@ -17,4 +26,4 @@ const startCase = R.compose(
splitOnUpper
)
export { startCase, onlyFirstToUpper }
export { startCase, onlyFirstToUpper, formatLong }