Skip to content

Commit bd9a23e

Browse files
committed
wip
1 parent aa91848 commit bd9a23e

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

apps/enterprise/src/pages/dao/NFTCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export const NFTCard = (props: NFTCardProps) => {
2121
if (nftObject[index].data) {
2222
const nftCollectionInfo = nftObject[index]["data"]["tokensPage"]["collection"]["collectionInfo"]
2323
const nft = nftObject[index]['data']['tokensPage']['token'];
24+
25+
2426
return (
2527
<Container className={styles.card}>
2628
<img src={nft.imageUrlFileserver} width={156} className={styles.nftPreview} alt="NFT Preview" />
@@ -44,7 +46,7 @@ export const NFTCard = (props: NFTCardProps) => {
4446
} else {
4547
return (
4648
<Container className={styles.card}>
47-
<img src={nftObject[index].image_data} width={156} className={styles.nftPreview} alt="NFT Preview" />
49+
<img src={nftObject[index].image} width={156} className={styles.nftPreview} alt="NFT Preview" />
4850
<Container direction="column" className={styles.nftInfo} gap={16}>
4951
<Text className={styles.name} variant="label">
5052
{nftObject[index].name}

apps/enterprise/src/pages/dao/TreasuryOverview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const TreasuryOverview = () => {
1919

2020
const { data: whitelist = [] } = useDAONFTsWhitelist(address);
2121
const { data: stakedNfts = [] } = useStakedNfts(address);
22+
2223
let nftCollection: NFTPairs[] | undefined = [];
2324
const { data } = useNFTsOwnersQuery(whitelist as CW20Addr[], dao.address);
2425
if (dao.dao_type !== 'nft') {

apps/enterprise/src/pages/dao/viewMoreNft/ViewMoreNftOverlay.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ export const ViewMoreNftOverlay = ({ onClose }: ClosableComponentProps) => {
2121

2222
const { data } = useNFTsOwnersQuery(whitelist as CW20Addr[], dao.address);
2323
const nftCollection: NFTPairs[] | undefined = data;
24+
25+
const nftCount = () => {
26+
let count = 0;
27+
nftCollection?.forEach((nftPair) => {
28+
count += nftPair.tokenIds?.tokens?.length || 0;
29+
});
30+
return count;
31+
}
32+
2433
return (
2534
<Modal
2635
width={970}
@@ -31,7 +40,7 @@ export const ViewMoreNftOverlay = ({ onClose }: ClosableComponentProps) => {
3140
return (
3241
<VStack className={styles.modalContent} gap={32}>
3342
<Container className={styles.subheader} gap={32}>
34-
<Text variant='label'> Displaying {nftCollection?.length} NFTs in treasury</Text>
43+
<Text variant='label'> Displaying {nftCount()} NFTs in treasury</Text>
3544
</Container>
3645
<Container className={styles.scrollableContainer}>
3746
{nftCollection?.length && nftCollection[0]?.tokenIds.length !== 0 ? (

0 commit comments

Comments
 (0)