From 26b0d9555fd82172f3df06f51b0523d861e1595f Mon Sep 17 00:00:00 2001 From: Aid Thompson Date: Fri, 26 Nov 2021 07:41:58 +0000 Subject: [PATCH 1/2] quick fix adding dimensions to nodemap page for consistency --- explorer/src/pages/MixnodesMap/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/explorer/src/pages/MixnodesMap/index.tsx b/explorer/src/pages/MixnodesMap/index.tsx index 84a2b7cc44..d3bf992f20 100644 --- a/explorer/src/pages/MixnodesMap/index.tsx +++ b/explorer/src/pages/MixnodesMap/index.tsx @@ -102,11 +102,11 @@ export const PageMixnodesMap: React.FC = () => { if (countryData?.data && !countryData.isLoading) { return ( - - - + <Grid> + <Grid item data-testid="mixnodes-globe"> + <Title text="Overview" /> </Grid> - <Grid item xs={12} lg={9}> + <Grid item> <Grid container spacing={2}> <Grid item xs={12}> <ContentCard title="Distribution of nodes"> From 56fa48215b222b8794ca0e23000fa60d0b3ec08d Mon Sep 17 00:00:00 2001 From: Aid Thompson <adrian@nymtech.net> Date: Fri, 26 Nov 2021 10:15:59 +0000 Subject: [PATCH 2/2] changed country names from official to their aliases to fit in cells --- explorer/src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/utils/index.ts b/explorer/src/utils/index.ts index 2cc8efeb13..7d0275798d 100644 --- a/explorer/src/utils/index.ts +++ b/explorer/src/utils/index.ts @@ -55,7 +55,7 @@ export function countryDataToGridRow( const updatedCountryRecord: CountryDataRowType = { ...each, id: index, - countryName: getName(each.ISO3, 'en', { select: 'official' }), + countryName: getName(each.ISO3, 'en', { select: 'alias' }), percentage: ((each.nodes * 100) / totalNodes).toFixed(1), }; return updatedCountryRecord;