Skip to content

Commit

Permalink
moved chains statistic to end
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jun 1, 2024
1 parent 8a177f3 commit ba77c98
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/stateless/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@ export const Home = ({
label: t('title.votesCast'),
value: stats.votes.toLocaleString(),
},
// Only show the chain count if more than 1 (i.e. not on a
// chain-specific home page).
...(stats.chains > 1
? [
{
Icon: Link,
label: t('title.chains'),
tooltip: t('info.chainsDeployedTooltip'),
value: stats.chains.toLocaleString(),
},
]
: []),
{
Icon: PeopleOutlined,
label: t('title.uniqueVoters'),
Expand All @@ -99,6 +87,18 @@ export const Home = ({
maximumFractionDigits: 2,
}),
},
// Only show the chain count if more than 1 (i.e. not on a
// chain-specific home page).
...(stats.chains > 1
? [
{
Icon: Link,
label: t('title.chains'),
tooltip: t('info.chainsDeployedTooltip'),
value: stats.chains.toLocaleString(),
},
]
: []),
]}
className="mb-8"
valueClassName="text-text-brand-secondary font-semibold font-mono"
Expand Down

0 comments on commit ba77c98

Please sign in to comment.