Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions components/auction/auction-detail-ui/AllPayDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,20 @@ export function AllPayDetail({
}
/>
{Date.now() >= Number(currentAuction.deadline) * 1000 && (
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
<div className="flex flex-col gap-1">
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
<p className="text-sm font-medium text-muted-foreground">
{Number(currentAuction.highestBid) === 0
? "No bids were placed, nothing to withdraw"
: Number(currentAuction.availableFunds) === 0
? "Funds have been withdrawn"
: "Withdrawal pending"}
</p>
</div>
)}
</div>
</div>
Expand Down
19 changes: 14 additions & 5 deletions components/auction/auction-detail-ui/EnglishDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,20 @@ export function EnglishDetail({
}
/>
{Date.now() >= Number(currentAuction.deadline) * 1000 && (
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
<div className="flex flex-col gap-1">
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
<p className="text-sm font-medium text-muted-foreground">
{Number(currentAuction.highestBid) === 0
? "No bids were placed, nothing to withdraw"
: Number(currentAuction.availableFunds) === 0
? "Funds have been withdrawn"
: "Withdrawal pending"}
</p>
</div>
)}
</div>
</div>
Expand Down
21 changes: 15 additions & 6 deletions components/auction/auction-detail-ui/VickreyDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,21 @@ export function VickreyDetail({
getVickreyPhase(currentAuction) === "ended" ? "ended" : "active"
}
/>
{Date.now() >= Number(currentAuction.bidRevealEnd) * 1000 && (
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
{Date.now() >= Number(currentAuction.deadline) * 1000 && (
<div className="flex flex-col gap-1">
<p className="text-sm font-medium text-muted-foreground">
{currentAuction.isClaimed
? "Asset has been claimed"
: "Asset has not been claimed yet"}
</p>
<p className="text-sm font-medium text-muted-foreground">
{Number(currentAuction.highestBid) === 0
? "No bids were placed, nothing to withdraw"
: Number(currentAuction.availableFunds) === 0
? "Funds have been withdrawn"
: "Withdrawal pending"}
</p>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
</div>
)}
</div>
</div>
Expand Down
Loading