From ad108eed3bdd9c5430678e4b90cd68c85ff1f6b8 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 25 Oct 2023 08:50:40 +0300 Subject: [PATCH] fix: delete current docs custom component and story --- .../CurrentPlatformOSDocs.stories.ts | 28 ------------- .../CurrentPlatformOSDocs.tsx | 39 ------------------- 2 files changed, 67 deletions(-) delete mode 100644 src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.stories.ts delete mode 100644 src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.tsx diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.stories.ts b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.stories.ts deleted file mode 100644 index bc3844b0..00000000 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.stories.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react' -import { withRouter } from 'storybook-addon-react-router-v6' - -import CurrentPlatformOSDocs from './CurrentPlatformOSDocs' -import { MAC } from '../../../../constants' -import { DOCUMENTATIONS } from './documentations' - -const meta = { - title: 'ValidatorOnboarding/CurrentPlatformOSDocs', - component: CurrentPlatformOSDocs, - tags: ['autodocs'], - decorators: [withRouter()], -} satisfies Meta - -export default meta -type Story = StoryObj - -export const GethGeneral: Story = { - args: { - content: DOCUMENTATIONS['Geth'].general, - }, -} - -export const GethMacOS: Story = { - args: { - content: DOCUMENTATIONS['Geth'].documentation[MAC], - }, -} diff --git a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.tsx b/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.tsx deleted file mode 100644 index 57942daf..00000000 --- a/src/pages/ValidatorOnboarding/ValidatorSetup/ValidatorInstalling/CurrentPlatformOSDocs.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import { YStack } from 'tamagui' -import { Link } from 'react-router-dom' -import { Text } from '@status-im/components' - -import SyntaxHighlighterBox from './SyntaxHighlighter' -import { DocumentationItem } from './documentations' - -type CurrentPlatformOSDocsProps = { - content: DocumentationItem[] -} - -const CurrentPlatformOSDocs = ({ content }: CurrentPlatformOSDocsProps) => { - return ( - - {content.map((item, index) => { - switch (item.type) { - case 'code': - return - case 'link': - return ( - - {item.content} - - ) - case 'text': - return ( - - {item.content} - - ) - default: - return null - } - })} - - ) -} - -export default CurrentPlatformOSDocs