mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-03 07:03:30 +00:00
fix: change content to docs in files
This commit is contained in:
parent
b0afb9e4b0
commit
13a34d600b
@ -1,13 +1,13 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import CurrentPlatformOSContent from './CurrentPlatformOSContent'
|
||||
import CurrentPlatformOSDocs from './CurrentPlatformOSDocs'
|
||||
import { LINUX, MAC, WINDOWS } from '../../../../constants'
|
||||
|
||||
const meta = {
|
||||
title: 'ValidatorOnboarding/CurrentPlatformOSContent',
|
||||
component: CurrentPlatformOSContent,
|
||||
title: 'ValidatorOnboarding/CurrentPlatformOSDocs',
|
||||
component: CurrentPlatformOSDocs,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof CurrentPlatformOSContent>
|
||||
} satisfies Meta<typeof CurrentPlatformOSDocs>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
@ -7,11 +7,11 @@ import { Text } from '@status-im/components'
|
||||
import { RootState } from '../../../../redux/store'
|
||||
import SyntaxHighlighterBox from './SyntaxHighlighter'
|
||||
|
||||
type CurrentPlatformOSContentProps = {
|
||||
type CurrentPlatformOSDocsProps = {
|
||||
selectedOS: string
|
||||
}
|
||||
|
||||
const CurrentPlatformOSContent = ({ selectedOS }: CurrentPlatformOSContentProps) => {
|
||||
const CurrentPlatformOSDocs = ({ selectedOS }: CurrentPlatformOSDocsProps) => {
|
||||
const selectedClient = useSelector((state: RootState) => state.execClient.selectedClient)
|
||||
|
||||
return (
|
||||
@ -40,4 +40,4 @@ const CurrentPlatformOSContent = ({ selectedOS }: CurrentPlatformOSContentProps)
|
||||
)
|
||||
}
|
||||
|
||||
export default CurrentPlatformOSContent
|
||||
export default CurrentPlatformOSDocs
|
@ -7,7 +7,7 @@ import { RootState } from '../../../../redux/store'
|
||||
import { DOCUMENTATIONS } from './documentations'
|
||||
import { MAC } from '../../../../constants'
|
||||
import OSCards from './OSCards'
|
||||
import CurrentPlatformOSContent from './CurrentPlatformOSContent'
|
||||
import CurrentPlatformOSDocs from './CurrentPlatformOSDocs'
|
||||
|
||||
const ValidatorSetupInstall = () => {
|
||||
const [selectedOS, setSelectedOS] = useState(MAC)
|
||||
@ -37,7 +37,7 @@ const ValidatorSetupInstall = () => {
|
||||
{DOCUMENTATIONS[selectedClient].general}
|
||||
</Text>
|
||||
<OSCards selectedOS={selectedOS} handleOSCardClick={handleOSCardClick} />
|
||||
<CurrentPlatformOSContent selectedOS={selectedOS} />
|
||||
<CurrentPlatformOSDocs selectedOS={selectedOS} />
|
||||
</YStack>
|
||||
</YStack>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user