The drops page displays all the registered tokens and allows anyone to claim or purchase one instance.
Create ./pages/drops.tsx with a basic component inside. The content will be a simple list of tokens, so we'll reuse the previously created TokenList component:
At this point, your Drops page (at localhost:3000/drops) should look like this:
If you have restarted your sandbox since deploying your contracts and registering the NFT metadata in the Smart Contracts Section, you will need to complete those steps again in order for the tokens to be visible on the drops page. A summary of the required steps for setup can be found in the project README. Complete the steps up to and including Register NFTs to get your drops page to work. You will also have to update your .env.local file with the correct contract addresses.
At this point, you may notice that after signing in with a user wallet you recieve 404 errors in you console. These errors are caused by calls to the blockchain RPC that are rejected. For example, if the connected wallet has not given the market operator permissions, requests to the market will be rejected with a 404 error. If a wallet is connected, our providers make calls to the chain in their useEffect blocks, using this wallet address as an input argument. If this wallet doesn't own any of the relevant NFTs, or hasn't set permissions for our market, these 404 errors will occur.