Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Jun 20, 2024
1 parent 15e6674 commit ef8ec9b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/app/nfts/[id]/page.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
"use client"
import React, {useState} from "react";

const NFTPage = ({ params }) => {
const id = params?.id;
export async function generateStaticParams() {

}

export async function getStaticProps({ params }) {
const nftData = params.id; // Fetch data for a specific NFT ID

return {
props: {
nft: nftData,
},
};
}

const NFTPage = ({ nft }) => {
// const id = params?.id;

const [isHovered, setIsHovered] = useState(false);

Expand Down

0 comments on commit ef8ec9b

Please sign in to comment.