mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
truncate currency value
This commit is contained in:
@@ -37,7 +37,7 @@ const CurrencyValue = ({ value, currency = '', decimals, exchangeRate, className
|
||||
const { valueCurr, valueStr: valueResult, usd: usdResult } = getCurrencyValue({ value, accuracy, accuracyUsd, exchangeRate, decimals });
|
||||
|
||||
const valueElement = (
|
||||
<chakra.span display="inline-block">
|
||||
<chakra.span display="inline-block" maxW="100%" whiteSpace="pre" overflow="hidden" textOverflow="ellipsis">
|
||||
{ valueResult }{ currency ? ` ${ currency }` : '' }
|
||||
</chakra.span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user