Skip to content

Commit

Permalink
Wrap fixed price NFT button with HOC (#5221)
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw authored Nov 6, 2023
1 parent cac5b84 commit bc5a016
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ export const NftWidgetContent: FC<NftWidgetContentProps> = memo(
</>
) : (
<GridItem colSpan={buttonColumnSpan}>
<Button fullWidth size={buttonSize} onClick={onNftPurchase}>
Buy now
</Button>
<ProtectedActionWrapper
title="You want to buy this NFT?"
description="Sign in to take part in NFT auctions"
>
<Button fullWidth size={buttonSize} onClick={onNftBuyNow}>
Buy now
</Button>
</ProtectedActionWrapper>
</GridItem>
)}
{bidFromPreviousAuction && (
Expand Down

0 comments on commit bc5a016

Please sign in to comment.