|
|
@ -58,12 +58,18 @@ const FormatBigNumber: React.FC<FormatBigNumberProps> = ({ |
|
|
|
const formattedBase = base.toFixed(precision); |
|
|
|
const formattedBase = base.toFixed(precision); |
|
|
|
const suffix = suffixes[exponent]; |
|
|
|
const suffix = suffixes[exponent]; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
if (base) { |
|
|
|
<span className={cn("inline-flex flex-row space-x-0.5 mr-0.5", className)}> |
|
|
|
return ( |
|
|
|
<span className="inline-block">{formattedBase}</span> |
|
|
|
<span |
|
|
|
<span className="inline-block">{suffix}</span> |
|
|
|
className={cn("inline-flex flex-row space-x-0.5 mr-0.5 pointer-events-none", className)} |
|
|
|
</span> |
|
|
|
> |
|
|
|
); |
|
|
|
<span className="inline-block">{formattedBase}</span> |
|
|
|
|
|
|
|
<span className="inline-block">{suffix}</span> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
type AgeHCyclesDisplayProps = { |
|
|
|
type AgeHCyclesDisplayProps = { |
|
|
|