feat: add title tooltips for mid values

This commit is contained in:
Matthew Russell
2023-08-29 20:40:27 -07:00
parent 17c461a073
commit 103ba0dd1a
+6 -1
View File
@@ -115,11 +115,16 @@ export const OrderbookMid = ({
// monospace sizing doesn't quite align with alpha
className="font-mono text-[15px]"
data-testid={`last-traded-${lastTradedPrice}`}
title={t('Last traded price')}
>
{addDecimalsFormatNumber(lastTradedPrice, decimalPlaces)}
</span>
<span>{assetSymbol}</span>
<span className="font-mono text-xs text-muted" data-testid="spread">
<span
title={t('Spread')}
className="font-mono text-xs text-muted"
data-testid="spread"
>
({addDecimalsFormatNumber(spread, decimalPlaces)})
</span>
</div>