From 1ffcc8ceeebe08db5658d8ec157098fc32517587 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 29 Aug 2023 09:49:28 +0300 Subject: [PATCH] fix: remove constant to not prerender --- .../ValidatorSetup/ValidatorSetup.tsx | 49 ++++++++++--------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx index 6d320492..658bacfa 100644 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx +++ b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorSetup.tsx @@ -4,31 +4,32 @@ import { Text } from '@status-im/components' import ExecClientCard from './ExecClientCard' import { Link } from 'react-router-dom' +const execClientCardsContent = [ + { + name: 'Nethermind', + icon: '/icons/nethermind-circle.png', + }, + { + name: 'Besu', + icon: '/icons/hyperledger-besu-circle.png', + }, + { + name: 'Geth', + icon: '/icons/gethereum-mascot-circle.png', + isSelected: true, + }, + { + name: 'Erigon', + icon: '/icons/erigon-circle.png', + }, + { + name: 'Nimbus', + icon: '/icons/NimbusDisabled.svg', + isComingSoon: true, + }, +] + const ValidatorSetup = () => { - const execClientCardsContent = [ - { - name: 'Nethermind', - icon: '/icons/nethermind-circle.png', - }, - { - name: 'Besu', - icon: '/icons/hyperledger-besu-circle.png', - }, - { - name: 'Geth', - icon: '/icons/gethereum-mascot-circle.png', - isSelected: true, - }, - { - name: 'Erigon', - icon: '/icons/erigon-circle.png', - }, - { - name: 'Nimbus', - icon: '/icons/NimbusDisabled.svg', - isComingSoon: true, - }, - ] return (