Skip to content

Commit

Permalink
Extend Link to Probabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
casesandberg committed Sep 5, 2024
1 parent 03e9645 commit e3c4b9c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/web/app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default async function AppPage() {
</Link>

<div className="flex flex-1">
<div className="flex-1 p-2">
<Link href={`/questions/${market.id}/${market.slug}`} className="flex-1 p-2">
{isBinaryMarket ? (
<div className="flex flex-row items-center gap-2">
<div style={{ color: market.options[0].color }}>{market.options[0].probability}%</div>
Expand All @@ -65,7 +65,7 @@ export default async function AppPage() {
</span> */}
</div>
)}
</div>
</Link>
<div className="p-2 pr-3">
{market.closeDate ? (
<div className="text-muted-foreground">{`in ${formatDistanceToNow(market.closeDate)}`}</div>
Expand Down Expand Up @@ -106,7 +106,7 @@ export default async function AppPage() {
</Link>

<div className="flex flex-1">
<div className="flex-1 p-2">
<Link href={`/questions/${market.id}/${market.slug}`} className="flex-1 p-2">
{isBinaryMarket ? (
<div className="flex flex-row items-center gap-2">
<div style={{ color: market.options[0].color }}>{market.options[0].probability}%</div>
Expand All @@ -127,7 +127,7 @@ export default async function AppPage() {
</span> */}
</div>
)}
</div>
</Link>
<div className="p-2 pr-3">
<Link href={`/${market.user.username}`}>
<UserAvatar size="sm" user={market.user} />
Expand Down

0 comments on commit e3c4b9c

Please sign in to comment.