Skip to content

Commit 0d8b4e3

Browse files
committed
update stats numbers
1 parent d06e3b1 commit 0d8b4e3

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

UI/home/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Home: FC = () => {
2222
return featuredPeoples.slice(0, 12)
2323
}, [featuredPeoples])
2424
const {
25-
stats: { followings, dids },
25+
stats: { connections, dids, socials, communitys },
2626
} = useNFT3Stats()
2727

2828
return (
@@ -72,19 +72,19 @@ const Home: FC = () => {
7272
</Grid>
7373
<Grid item xs={6} sm={3}>
7474
<H2>
75-
<DisplayNumber value={followings} />
75+
<DisplayNumber value={socials} />
7676
</H2>
7777
<Span sx={{ color: 'grey.600' }}>Total DID Verified</Span>
7878
</Grid>
7979
<Grid item xs={6} sm={3}>
8080
<H2>
81-
<DisplayNumber value={followings} />
81+
<DisplayNumber value={connections} />
8282
</H2>
8383
<Span sx={{ color: 'grey.600' }}>Total Connections</Span>
8484
</Grid>
8585
<Grid item xs={6} sm={3}>
8686
<H2>
87-
<DisplayNumber value={95603} />
87+
<DisplayNumber value={communitys} />
8888
</H2>
8989
<Span sx={{ color: 'grey.600' }}>Total Community</Span>
9090
</Grid>

UI/layouts/Footer/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Footer: FC = () => {
4545
<Links />
4646
</Stack>
4747
<CopyRight variant="caption" color="grey.400">
48-
© 2022, ISME. All Rights Reserved
48+
© {new Date().getFullYear()}, ISME. All Rights Reserved
4949
</CopyRight>
5050
</Content>
5151
</ROOT>

domains/data/nft3/stats/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { useCallback, useEffect, useState } from 'react'
2+
import type { NFT3Stats } from '@nft3sdk/client'
23
import { createContext } from 'app/utils/createContext'
34
import { useNFT3 } from 'domains/data'
4-
type NFT3Stats = {
5-
dids: number
6-
followings: number
7-
socials: number
8-
unclaims: number
9-
}
105

116
const useStatsService = () => {
127
const { queryer } = useNFT3()

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@emotion/styled": "^11.10.0",
2222
"@mui/icons-material": "^5.8.4",
2323
"@mui/material": "^5.8.0",
24-
"@nft3sdk/did-manager": "^0.2.3",
24+
"@nft3sdk/did-manager": "^0.2.4",
2525
"@reduxjs/toolkit": "^1.8.2",
2626
"axios": "^0.27.2",
2727
"bignumber.js": "^9.1.0",

0 commit comments

Comments
 (0)