fix: change content to docs in files

This commit is contained in:
RadoslavDimchev 2023-10-24 17:35:58 +03:00
parent b0afb9e4b0
commit 13a34d600b
3 changed files with 9 additions and 9 deletions

View File

@ -1,13 +1,13 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import CurrentPlatformOSContent from './CurrentPlatformOSContent' import CurrentPlatformOSDocs from './CurrentPlatformOSDocs'
import { LINUX, MAC, WINDOWS } from '../../../../constants' import { LINUX, MAC, WINDOWS } from '../../../../constants'
const meta = { const meta = {
title: 'ValidatorOnboarding/CurrentPlatformOSContent', title: 'ValidatorOnboarding/CurrentPlatformOSDocs',
component: CurrentPlatformOSContent, component: CurrentPlatformOSDocs,
tags: ['autodocs'], tags: ['autodocs'],
} satisfies Meta<typeof CurrentPlatformOSContent> } satisfies Meta<typeof CurrentPlatformOSDocs>
export default meta export default meta
type Story = StoryObj<typeof meta> type Story = StoryObj<typeof meta>

View File

@ -7,11 +7,11 @@ import { Text } from '@status-im/components'
import { RootState } from '../../../../redux/store' import { RootState } from '../../../../redux/store'
import SyntaxHighlighterBox from './SyntaxHighlighter' import SyntaxHighlighterBox from './SyntaxHighlighter'
type CurrentPlatformOSContentProps = { type CurrentPlatformOSDocsProps = {
selectedOS: string selectedOS: string
} }
const CurrentPlatformOSContent = ({ selectedOS }: CurrentPlatformOSContentProps) => { const CurrentPlatformOSDocs = ({ selectedOS }: CurrentPlatformOSDocsProps) => {
const selectedClient = useSelector((state: RootState) => state.execClient.selectedClient) const selectedClient = useSelector((state: RootState) => state.execClient.selectedClient)
return ( return (
@ -40,4 +40,4 @@ const CurrentPlatformOSContent = ({ selectedOS }: CurrentPlatformOSContentProps)
) )
} }
export default CurrentPlatformOSContent export default CurrentPlatformOSDocs

View File

@ -7,7 +7,7 @@ import { RootState } from '../../../../redux/store'
import { DOCUMENTATIONS } from './documentations' import { DOCUMENTATIONS } from './documentations'
import { MAC } from '../../../../constants' import { MAC } from '../../../../constants'
import OSCards from './OSCards' import OSCards from './OSCards'
import CurrentPlatformOSContent from './CurrentPlatformOSContent' import CurrentPlatformOSDocs from './CurrentPlatformOSDocs'
const ValidatorSetupInstall = () => { const ValidatorSetupInstall = () => {
const [selectedOS, setSelectedOS] = useState(MAC) const [selectedOS, setSelectedOS] = useState(MAC)
@ -37,7 +37,7 @@ const ValidatorSetupInstall = () => {
{DOCUMENTATIONS[selectedClient].general} {DOCUMENTATIONS[selectedClient].general}
</Text> </Text>
<OSCards selectedOS={selectedOS} handleOSCardClick={handleOSCardClick} /> <OSCards selectedOS={selectedOS} handleOSCardClick={handleOSCardClick} />
<CurrentPlatformOSContent selectedOS={selectedOS} /> <CurrentPlatformOSDocs selectedOS={selectedOS} />
</YStack> </YStack>
</YStack> </YStack>
) )