Fix warning

This commit is contained in:
Hristo Nedelkov 2023-08-24 16:19:45 +03:00
parent 99214f3389
commit d663fd9869
1 changed files with 16 additions and 11 deletions

View File

@ -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 (
<>
<Shadow