Code style fixes
This commit is contained in:
parent
f2e297ce39
commit
1db7919875
@ -84,7 +84,3 @@ const Markets = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default Markets;
|
export default Markets;
|
||||||
|
|
||||||
// const TwoMarkets = () => (<><div style={{height: '50%'}}><Markets /></div><div style={{height: '50%'}}><Markets /></div></>)
|
|
||||||
|
|
||||||
// export default TwoMarkets;
|
|
||||||
|
@ -6,8 +6,9 @@ export interface IPriceCellProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const PriceCell = ({ value, valueFormatted }: IPriceCellProps) => {
|
export const PriceCell = ({ value, valueFormatted }: IPriceCellProps) => {
|
||||||
if ((!value && value !== 0) || isNaN(Number(value)))
|
if ((!value && value !== 0) || isNaN(Number(value))) {
|
||||||
return <span data-testid="price">-</span>;
|
return <span data-testid="price">-</span>;
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<span className="font-mono" data-testid="price">
|
<span className="font-mono" data-testid="price">
|
||||||
<FlashCell value={Number(value)}>{valueFormatted}</FlashCell>
|
<FlashCell value={Number(value)}>{valueFormatted}</FlashCell>
|
||||||
|
Loading…
Reference in New Issue
Block a user