Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed May 18, 2024
1 parent 2500d77 commit 4f77fe6
Show file tree
Hide file tree
Showing 6 changed files with 553 additions and 258 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function CollectionPage({ params }: { params: { network: string;
collection={collection}
isLoading={isLoading}
isError={isError}
renderOrder={["balanceOf", "Image", "Token Id", "Name", "Description", "Attributes"]}
renderOrder={["Balance", "Image", "Token Id", "Name", "Description", "Type", "Attributes"]}
/>
</div>
);
Expand Down
16 changes: 14 additions & 2 deletions packages/nextjs/components/scaffold-nft/nft/Nft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,21 @@ export const Nft = ({
);
}

console.log(token);
if (renderOrder[i] === "Type") {
let i = "";

if (token?.tokenType === 0) {
i += "Transferable";
} else if (token?.tokenType === 1) {
i += "Soulbound";
} else if (token?.tokenType === 2) {
i += "Redeemable";
}

selectedElement = <Text value={i} size={size} valueClassName={bigAndBoldTextStyleMap[size]} />;
}

if (renderOrder[i] === "balanceOf") {
if (renderOrder[i] === "Balance") {
selectedElement = (
<Text value={token?.balanceOf?.toString()} size={size} valueClassName={bigAndBoldTextStyleMap[size]} />
);
Expand Down
Loading

0 comments on commit 4f77fe6

Please sign in to comment.