Skip to content

Commit

Permalink
fix: update Dropdown component to use onHover for APR and TVL columns (
Browse files Browse the repository at this point in the history
  • Loading branch information
hugolxt authored Dec 16, 2024
1 parent cf2ead8 commit 03337fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/element/opportunity/OpportunityTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function OpportunityTableRow({ hideTags, opportunity, className,
className={mergeClass("cursor-pointer", className)}
{...props}
aprColumn={
<Dropdown size="xl" content={<AprModal opportunity={opportunity} />}>
<Dropdown size="xl" onHover content={<AprModal opportunity={opportunity} />}>
<PrimitiveTag look="tint" size="lg">
<Value value format="0a%">
{opportunity.apr / 100}
Expand All @@ -37,7 +37,7 @@ export default function OpportunityTableRow({ hideTags, opportunity, className,
</Dropdown>
}
tvlColumn={
<Dropdown size="xl" content={<AprModal opportunity={opportunity} />}>
<Dropdown size="xl" onHover content={<AprModal opportunity={opportunity} />}>
<PrimitiveTag look="base" className="font-mono">
<Value value format="$0,0.0a">
{opportunity.tvl ?? 0}
Expand Down

0 comments on commit 03337fe

Please sign in to comment.