Skip to content

Commit 1321c2a

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
show blocks
1 parent 1d0114c commit 1321c2a

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

ui/home/HeroBanner.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ const HeroBanner = () => {
6464
return null;
6565
}, [ statsQuery.data, apiQuery.data ]);
6666

67-
const totalAccounts = React.useMemo(() => {
67+
const totalBlocks = React.useMemo(() => {
6868
const statsData = statsQuery.data;
6969
const apiData = apiQuery.data;
70-
if (statsData?.total_addresses?.value) {
71-
return Number(statsData.total_addresses.value);
70+
if (statsData?.total_blocks?.value) {
71+
return Number(statsData.total_blocks.value);
7272
}
73-
if (apiData?.total_addresses) {
74-
return Number(apiData.total_addresses);
73+
if (apiData?.total_blocks) {
74+
return Number(apiData.total_blocks);
7575
}
7676
return null;
7777
}, [ statsQuery.data, apiQuery.data ]);
@@ -289,7 +289,7 @@ const HeroBanner = () => {
289289
</Text>
290290
</LinkBox>
291291

292-
{ /* Accounts */ }
292+
{ /* Total Blocks */ }
293293
<LinkBox
294294
p={ 5 }
295295
position="relative"
@@ -306,7 +306,7 @@ const HeroBanner = () => {
306306
}}
307307
>
308308
<LinkOverlay
309-
href={ route({ pathname: '/accounts' }) }
309+
href={ route({ pathname: '/blocks' }) }
310310
noIcon
311311
/>
312312
<Flex
@@ -322,10 +322,10 @@ const HeroBanner = () => {
322322
color={{ _light: 'rgba(30, 58, 138, 0.9)', _dark: 'rgba(148, 163, 184, 1)' }}
323323
fontFamily="system-ui, -apple-system, sans-serif"
324324
>
325-
Accounts
325+
Total Blocks
326326
</Text>
327327
<IconSvg
328-
name="profile"
328+
name="block_slim"
329329
boxSize={ 3 }
330330
color={{ _light: 'rgba(30, 58, 138, 0.9)', _dark: 'rgba(148, 163, 184, 1)' }}
331331
/>
@@ -339,7 +339,7 @@ const HeroBanner = () => {
339339
fontFamily="system-ui, -apple-system, sans-serif"
340340
lineHeight="1"
341341
>
342-
{ formatNumber(totalAccounts, 1) }
342+
{ formatNumber(totalBlocks, 1) }
343343
</Text>
344344
</Skeleton>
345345
</LinkBox>

0 commit comments

Comments
 (0)