diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index 5522fee..03be41e 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -83,11 +83,38 @@ const Home: NextPage = () => { }, }); + const KudzusQuery = gql` + query Kudzus($contracts: [String]) { + kudzus(where: { contract_in: $contracts }) { + items { + token + contract + } + } + } + `; + + const contractAddresses = containersData?.containers?.items?.map((item: any) => item.contract); + + const [{ data: kudzusData }] = useQuery({ + query: KudzusQuery, + variables: { + contracts: contractAddresses, + }, + }); + const router = useRouter(); let i = 0; const containerRender = containersData?.containers?.items?.map((container: any) => { - return ; + return ( + item.contract === container.contract)?.token} + /> + ); }); return (