From d663fd98694df28d382e52dfcfe95a2d67774432 Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Thu, 24 Aug 2023 16:19:45 +0300 Subject: [PATCH] Fix warning --- .../Advicsories/Advicsories.tsx | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx b/src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx index eca88eaa..7359853d 100644 --- a/src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx +++ b/src/pages/ValidatorOnboarding/Advicsories/Advicsories.tsx @@ -3,19 +3,24 @@ import { useState } from 'react' import { Stack, XStack, YStack } from 'tamagui' import AdvisoriesContent from './AdvisoriesContent' +type AdvisoryTopicsType = { + [key: string]: string +} + +const unicodeNumbers = ['➀', '➁', '➂', '➃', '➄', '➅'] + +const advisoryTopics: AdvisoryTopicsType = { + 'Proof of Stake': 'This is content for Proof of Stake...', + Deposit: 'This is content for Deposit...', + 'Key Management': 'This is content for Key Management...', + 'Bad Behaviour': + 'If you try to cheat the system, or act contrary to the specification, you will be liable to incur a penalty known as slashing*. Running your validator keys simultaneously on two or more machines will result in slashing.* Simply being offline with an otherwise healthy network does not result in slashing, but will result in small inactivity penalties.', + Requirements: 'This is content for Requirements...', + Risks: 'This is content for Risks...', +} + const Advicsories = () => { const [selectedTitle, setSelectedTitle] = useState('Bad Behaviour') - - const advisoryTopics = { - 'Proof of Stake': 'This is content for Proof of Stake...', - Deposit: 'This is content for Deposit...', - 'Key Management': 'This is content for Key Management...', - 'Bad Behaviour': - 'If you try to cheat the system, or act contrary to the specification, you will be liable to incur a penalty known as slashing*. Running your validator keys simultaneously on two or more machines will result in slashing.* Simply being offline with an otherwise healthy network does not result in slashing, but will result in small inactivity penalties.', - Requirements: 'This is content for Requirements...', - Risks: 'This is content for Risks...', - } - const unicodeNumbers = ['➀', '➁', '➂', '➃', '➄', '➅'] return ( <>