From ba77c98ffa836cd8340898916bbe57809c70aef7 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Fri, 31 May 2024 23:12:43 -0400 Subject: [PATCH] moved chains statistic to end --- packages/stateless/pages/Home.tsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/stateless/pages/Home.tsx b/packages/stateless/pages/Home.tsx index 93600cbe2..a57012412 100644 --- a/packages/stateless/pages/Home.tsx +++ b/packages/stateless/pages/Home.tsx @@ -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'), @@ -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"