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: 'text'; content: string }
type ClientData = {
type ExecClientData = {
icon: string
documentation: Record<string, DocumentationItem[]>
}
type Documentation = Record<string, ClientData>
type Documentation = Record<string, ExecClientData>
export const DOCUMENTATION: Documentation = {
export const DOCUMENTATIONS: Documentation = {
Nethermind: {
icon: '/icons/nethermind-circle.png',
documentation: {

View File

@ -2,7 +2,7 @@ import { Stack, XStack, YStack } from 'tamagui'
import { Text } from '@status-im/components'
import ExecClientCard from './ExecClientCard'
import { DOCUMENTATION } from '../ValidatorInstalling/documentions'
import { DOCUMENTATIONS } from '../ValidatorInstalling/documentions'
const ExecClientCards = () => {
return (
@ -11,7 +11,7 @@ const ExecClientCards = () => {
<Text size={27}>Select Execution client</Text>
</Stack>
<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} />
))}
</XStack>