fix: documentation var name and client type

This commit is contained in:
RadoslavDimchev 2023-10-24 07:20:04 +03:00
parent 0fde0eabd8
commit 17bff99042
2 changed files with 5 additions and 5 deletions

View File

@ -5,14 +5,14 @@ type DocumentationItem =
| { type: 'link'; content: string } | { type: 'link'; content: string }
| { type: 'text'; content: string } | { type: 'text'; content: string }
type ClientData = { type ExecClientData = {
icon: string icon: string
documentation: Record<string, DocumentationItem[]> documentation: Record<string, DocumentationItem[]>
} }
type Documentation = Record<string, ClientData> type Documentation = Record<string, ExecClientData>
export const DOCUMENTATION: Documentation = { export const DOCUMENTATIONS: Documentation = {
Nethermind: { Nethermind: {
icon: '/icons/nethermind-circle.png', icon: '/icons/nethermind-circle.png',
documentation: { documentation: {

View File

@ -2,7 +2,7 @@ import { Stack, XStack, YStack } from 'tamagui'
import { Text } from '@status-im/components' import { Text } from '@status-im/components'
import ExecClientCard from './ExecClientCard' import ExecClientCard from './ExecClientCard'
import { DOCUMENTATION } from '../ValidatorInstalling/documentions' import { DOCUMENTATIONS } from '../ValidatorInstalling/documentions'
const ExecClientCards = () => { const ExecClientCards = () => {
return ( return (
@ -11,7 +11,7 @@ const ExecClientCards = () => {
<Text size={27}>Select Execution client</Text> <Text size={27}>Select Execution client</Text>
</Stack> </Stack>
<XStack justifyContent={'space-between'}> <XStack justifyContent={'space-between'}>
{Object.entries(DOCUMENTATION).map(([name, { icon }], index) => ( {Object.entries(DOCUMENTATIONS).map(([name, { icon }], index) => (
<ExecClientCard key={index} name={name} icon={icon} /> <ExecClientCard key={index} name={name} icon={icon} />
))} ))}
</XStack> </XStack>