- {pet ?
:
}
+ {collectionID ? (
+ pet ? (
+
+ ) : (
+
+ )
+ ) : null}
);
}
diff --git a/frontend/src/app/home/Pet/Collection.tsx b/frontend/src/app/home/Pet/Collection.tsx
index 4adbcb36..f46c3fca 100644
--- a/frontend/src/app/home/Pet/Collection.tsx
+++ b/frontend/src/app/home/Pet/Collection.tsx
@@ -1,6 +1,5 @@
"use client";
-import { Pet } from ".";
import { useCallback, useState, useEffect } from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { Network, Provider } from "aptos";
@@ -8,7 +7,7 @@ import { Network, Provider } from "aptos";
export const provider = new Provider(Network.TESTNET);
export interface CollectionProps {
- pet: Pet;
+ collectionID: string;
}
export type Collection = {
@@ -19,22 +18,20 @@ export type Collection = {
current_supply: any;
};
-export function Collection({ pet }: CollectionProps) {
+export type CollectionHolder = {
+ owner_address: string;
+};
+
+export function Collection({ collectionID }: CollectionProps) {
const { account, network } = useWallet();
const [collection, setCollection] = useState