Skip to content

Commit

Permalink
feat: mint or collect button :
Browse files Browse the repository at this point in the history
  • Loading branch information
r3lays committed Feb 22, 2024
1 parent 0ed0801 commit 38ba878
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/[chain]/collection/[contract].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,22 @@ const CollectionPage: NextPage<Props> = ({ id, ssr }) => {
property="fc:frame:button:1:target"
content={`eip155:${collection.chainId}:${collection.primaryContract}`}
/>

<meta
property="fc:frame:button:2"
content={
mintPrice
? `Mint ${mintPrice} ${mintCurrency?.toUpperCase()}`
: `Collect ${
collection.floorAsk?.price?.amount?.native
} ${collection.floorAsk?.price?.currency?.symbol?.toUpperCase()}`
}
/>
<meta property="fc:frame:button:2:action" content="link" />
<meta
property="fc:frame:button:2:target"
content={`${process.env.NEXT_PUBLIC_HOST_URL}${router.asPath}`}
/>
</>
}
/>
Expand Down

0 comments on commit 38ba878

Please sign in to comment.