Skip to content

Commit

Permalink
Pass handler to nft withdrawal button
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Oct 2, 2023
1 parent b9fc1b4 commit 385847c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/atlas/src/components/_nft/NftWidget/NftWidgetContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ export const NftWidgetContent: FC<NftWidgetContentProps> = memo(
title="Withdraw your bid"
description="You placed a bid in a previous auction that you can now withdraw to claim back your money."
/>
<WithdrawBidFromPreviousAuction size={size} bidFromPreviousAuction={bidFromPreviousAuction} />
<WithdrawBidFromPreviousAuction
size={size}
bidFromPreviousAuction={bidFromPreviousAuction}
onWithdrawBid={onWithdrawBid}
/>
</>
)}
{isOwner && (
Expand Down Expand Up @@ -161,6 +165,7 @@ export const NftWidgetContent: FC<NftWidgetContentProps> = memo(
secondary
size={size}
bidFromPreviousAuction={bidFromPreviousAuction}
onWithdrawBid={onWithdrawBid}
/>
</>
)}
Expand Down Expand Up @@ -365,7 +370,11 @@ export const NftWidgetContent: FC<NftWidgetContentProps> = memo(
)}

{nftStatus.hasTimersLoaded && bidFromPreviousAuction && (
<WithdrawBidFromPreviousAuction size={size} bidFromPreviousAuction={bidFromPreviousAuction} />
<WithdrawBidFromPreviousAuction
size={size}
bidFromPreviousAuction={bidFromPreviousAuction}
onWithdrawBid={onWithdrawBid}
/>
)}

{nftStatus.hasTimersLoaded &&
Expand Down

0 comments on commit 385847c

Please sign in to comment.