-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "removed factory and reputation.vision implementation"
This reverts commit 46da1f0.
- Loading branch information
1 parent
3b52beb
commit 1617c80
Showing
6 changed files
with
2,110 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 58 additions & 58 deletions
116
packages/nextjs/app/collections/[network]/[address]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
// "use client"; | ||
|
||
// import React from "react"; | ||
// //, { useEffect } | ||
// import { useState } from "react"; | ||
// import { useAccount } from "wagmi"; | ||
// // import "react-dropdown/style.css"; | ||
// import { Collection } from "~~/components/scaffold-nft/collection/Collection"; | ||
// // import useAdvancedFiltering from "~~/hooks/scaffold-nft/useAdvancedFiltering"; | ||
// // import useCheckboxes from "~~/hooks/scaffold-nft/useCheckboxes"; | ||
// // import useTokenIds from "~~/hooks/scaffold-nft/useTokenIds"; | ||
// import { useTokens } from "~~/hooks/scaffold-nft/useTokens"; | ||
|
||
// // import { renderInputOptions } from "~~/scaffold-nft-config"; | ||
|
||
// export default function CollectionPage({ params }: { params: { network: string; address: string } }) { | ||
// // const { inputComponents, componentsToRender } = useCheckboxes(renderInputOptions); | ||
|
||
// const userAccount = useAccount(); | ||
|
||
// // const { tokenIds, setTokenIds } = useTokenIds(2); | ||
// // async function onSubmit(newIds: bigint[]) { | ||
// // setTokenIds([...newIds]); | ||
// // } | ||
|
||
// // const tokenIds = [BigInt(0), BigInt(1)]; | ||
|
||
// const [tokenIds] = useState<bigint[]>([BigInt(0), BigInt(1)]); | ||
|
||
// // const { | ||
// // chosenOption, | ||
// // // chosenOption2, | ||
// // output: advancedOutput, | ||
// // } = useAdvancedFiltering(inputComponents, onSubmit); | ||
|
||
// const { collection, isLoading, isError } = useTokens( | ||
// params["network"], | ||
// params["address"], | ||
// userAccount.address, | ||
// tokenIds, | ||
// "nftstorage", | ||
// //chosenOption2, | ||
// ); | ||
|
||
// console.log(collection); | ||
|
||
// return ( | ||
// <div className="flex flex-col items-center justify-center"> | ||
// {/* {advancedOutput} */} | ||
// <Collection | ||
// collection={collection} | ||
// isLoading={isLoading} | ||
// isError={isError} | ||
// renderOrder={["Balance", "Image", "Token Id", "Name", "Description", "Type", "Attributes"]} | ||
// /> | ||
// </div> | ||
// ); | ||
// } | ||
"use client"; | ||
|
||
import React from "react"; | ||
//, { useEffect } | ||
import { useState } from "react"; | ||
import { useAccount } from "wagmi"; | ||
// import "react-dropdown/style.css"; | ||
import { Collection } from "~~/components/scaffold-nft/collection/Collection"; | ||
// import useAdvancedFiltering from "~~/hooks/scaffold-nft/useAdvancedFiltering"; | ||
// import useCheckboxes from "~~/hooks/scaffold-nft/useCheckboxes"; | ||
// import useTokenIds from "~~/hooks/scaffold-nft/useTokenIds"; | ||
import { useTokens } from "~~/hooks/scaffold-nft/useTokens"; | ||
|
||
// import { renderInputOptions } from "~~/scaffold-nft-config"; | ||
|
||
export default function CollectionPage({ params }: { params: { network: string; address: string } }) { | ||
// const { inputComponents, componentsToRender } = useCheckboxes(renderInputOptions); | ||
|
||
const userAccount = useAccount(); | ||
|
||
// const { tokenIds, setTokenIds } = useTokenIds(2); | ||
// async function onSubmit(newIds: bigint[]) { | ||
// setTokenIds([...newIds]); | ||
// } | ||
|
||
// const tokenIds = [BigInt(0), BigInt(1)]; | ||
|
||
const [tokenIds] = useState<bigint[]>([BigInt(0), BigInt(1)]); | ||
|
||
// const { | ||
// chosenOption, | ||
// // chosenOption2, | ||
// output: advancedOutput, | ||
// } = useAdvancedFiltering(inputComponents, onSubmit); | ||
|
||
const { collection, isLoading, isError } = useTokens( | ||
params["network"], | ||
params["address"], | ||
userAccount.address, | ||
tokenIds, | ||
"nftstorage", | ||
//chosenOption2, | ||
); | ||
|
||
console.log(collection); | ||
|
||
return ( | ||
<div className="flex flex-col items-center justify-center"> | ||
{/* {advancedOutput} */} | ||
<Collection | ||
collection={collection} | ||
isLoading={isLoading} | ||
isError={isError} | ||
renderOrder={["Balance", "Image", "Token Id", "Name", "Description", "Type", "Attributes"]} | ||
/> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.