diff --git a/src/components/TranslationChartImage/TranslationChartImage.stories.tsx b/src/components/TranslationChartImage/TranslationChartImage.stories.tsx new file mode 100644 index 00000000000..f61a7e2f74b --- /dev/null +++ b/src/components/TranslationChartImage/TranslationChartImage.stories.tsx @@ -0,0 +1,24 @@ +import { Meta, StoryObj } from "@storybook/react" + +import TranslationChartImageComponent from "." + +const meta = { + title: "Atoms / Media & Icons / TranslationChartImage", + component: TranslationChartImageComponent, + parameters: { + layout: "fullscreen", + }, + decorators: [ + (Story) => ( +
+ +
+ ), + ], +} satisfies Meta + +export default meta + +type Story = StoryObj + +export const TranslationChartImage: Story = {} diff --git a/src/components/TranslationChartImage.tsx b/src/components/TranslationChartImage/index.tsx similarity index 75% rename from src/components/TranslationChartImage.tsx rename to src/components/TranslationChartImage/index.tsx index 51bf3acc6dc..f819899b6b8 100644 --- a/src/components/TranslationChartImage.tsx +++ b/src/components/TranslationChartImage/index.tsx @@ -1,6 +1,6 @@ import { useColorModeValue } from "@chakra-ui/react" -import { Image } from "@/components/Image" +import { TwImage } from "@/components/Image" import pageviewsDark from "@/public/images/translation-program/pageviews-dark.png" import pageviewsLight from "@/public/images/translation-program/pageviews-light.png" @@ -9,13 +9,10 @@ const TranslationChartImage = () => { const ethImage = useColorModeValue(pageviewsLight, pageviewsDark) return ( - ) }