mirror of
https://github.com/kremalicious/blowfish.git
synced 2025-02-14 21:10:35 +01:00
merge fix
This commit is contained in:
parent
99aaabcc29
commit
79b093d82d
@ -5,7 +5,6 @@ import { AppContext } from '../store/createContext'
|
||||
import { cryptoFormatter } from '../../utils'
|
||||
import './Balance.css'
|
||||
import { fadeIn } from './Animations'
|
||||
import { cryptoFormatter } from '../../utils'
|
||||
|
||||
const Animation = posed.h1(fadeIn)
|
||||
|
||||
|
@ -4,7 +4,6 @@ import { AppContext } from '../store/createContext'
|
||||
import { cryptoFormatter } from '../../utils'
|
||||
import './Ticker.css'
|
||||
import { fadeIn } from './Animations'
|
||||
import { cryptoFormatter } from '../../utils'
|
||||
|
||||
const Item = posed.div(fadeIn)
|
||||
|
||||
|
@ -15,7 +15,7 @@ const rgbaToHex = color => {
|
||||
}
|
||||
|
||||
const locale =
|
||||
typeof navigator !== 'undefined' ? navigator.language : app.getLocale()
|
||||
typeof navigator !== 'undefined' ? navigator.language : () => app.getLocale()
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat
|
||||
const numberFormatter = value =>
|
||||
@ -39,7 +39,7 @@ const cryptoFormatter = (value, currency) => {
|
||||
if (currency === 'ocean') {
|
||||
return formatOcean(value)
|
||||
} else {
|
||||
return formatCurrency(value, currency.toUpperCase(), locale.split('-')[0])
|
||||
return formatCurrency(value, currency.toUpperCase(), locale)
|
||||
.replace(/BTC/, 'Ƀ')
|
||||
.replace(/ETH/, 'Ξ')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user