Skip to content

Commit

Permalink
fix: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Dec 9, 2024
1 parent 5d6ddd9 commit e9869d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/trade/ui/trade-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Trace } from '@/shared/api/server/book/types.ts';
import { getSymbolFromValueView } from '@penumbra-zone/getters/value-view';
import React from 'react';
import { ChevronRight } from 'lucide-react';
import { Text } from '@penumbra-zone/ui/Text';

function formatPrice(price: string): string {
const num = parseFloat(price);
Expand Down Expand Up @@ -41,16 +40,15 @@ export const TradeRow = ({
backgroundImage: `linear-gradient(to right, ${bgColor} ${relativeSize}%, transparent ${relativeSize}%)`,
}}
>
<div className={`${isSell ? 'text-red-400' : 'text-green-400'}`}>
{formatPrice(trace.price)}
</div>
<div className={isSell ? 'text-red-400' : 'text-green-400'}>{formatPrice(trace.price)}</div>
<div className='text-right text-white'>{formatNumber(trace.amount)}</div>
<div className='text-right text-white'>{formatNumber(trace.total)}</div>
<div className='text-right'>
<HopCount count={trace.hops.length} />
</div>

{/* Overlay that appears on hover */}
{/* eslint-disable-next-line react/no-unknown-property -- jsx is, in fact, a property */}
<style jsx>{`
.group:hover > div:not(:last-child) {
visibility: hidden;
Expand Down

0 comments on commit e9869d9

Please sign in to comment.