Skip to content

Commit

Permalink
comment out module usage ahead of merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bvalosek committed Dec 9, 2021
1 parent af44ee1 commit 789c0ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
6 changes: 2 additions & 4 deletions src/pages/BrowseNftsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { NETWORKS } from '../constants/contracts';
import useListRealmNfts from '../hooks/useListRealmNfts';
import BannerPageHeading from '../components/BannerPageHeading';
import NftGalleryCard from '../components/NftGalleryCard';
import { BigNumber } from 'ethers';
import InfusionTicker from '../components/InfusionTicker';

interface Params {
network: string;
Expand Down Expand Up @@ -56,7 +54,7 @@ export default () => {
/>
))}
</NftList>
<div>
{/* <div>
{data.realm.infusions.map(infusion => (
<div key={infusion.id}>
<InfusionTicker
Expand All @@ -67,7 +65,7 @@ export default () => {
/>
</div>
))}
</div>
</div> */}
</Container>
);
};
20 changes: 8 additions & 12 deletions src/pages/NftDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import useBrowseNftDetails from '../hooks/useBrowseNftDetails';
import useCollectionInfusions from '../hooks/useCollectionInfusions';
import useMetadata from '../hooks/useMetadata';
import { NETWORKS } from '../constants/contracts';
import { useQuery } from 'react-query';
import { getLoaders } from '../hypervibes/dataloaders';
import { BigNumber } from 'ethers';
import InfusionTicker from '../components/InfusionTicker';

interface Params {
network: string;
Expand Down Expand Up @@ -93,12 +89,12 @@ export default () => {

const { metadata, isLoading: isMetadataLoading } = useMetadata(nft?.tokenUri);

const infusionDataQuery = useQuery([network, collection, tokenId], () =>
getLoaders(chainId).indexedInfusion.load({
collection: collection,
tokenId: BigNumber.from(tokenId),
})
);
// const infusionDataQuery = useQuery([network, collection, tokenId], () =>
// getLoaders(chainId).indexedInfusion.load({
// collection: collection,
// tokenId: BigNumber.from(tokenId),
// })
// );

if (isError) {
return <p>error fetching realms</p>;
Expand Down Expand Up @@ -176,7 +172,7 @@ export default () => {
</Details>
</NftDetails>

{infusionDataQuery.data && (
{/* {infusionDataQuery.data && (
<table>
<tbody>
{infusionDataQuery.data.infusions.map(infusion => (
Expand All @@ -194,7 +190,7 @@ export default () => {
))}
</tbody>
</table>
)}
)} */}

{otherCollectionInfusions && otherCollectionInfusions.length > 0 && (
<>
Expand Down

0 comments on commit 789c0ab

Please sign in to comment.