-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13774 from Baystef/feat/translationchartimage-story
Create story tests for TranslationChartImage component [#13734]
- Loading branch information
Showing
2 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
src/components/TranslationChartImage/TranslationChartImage.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) => ( | ||
<div className="max-w-3xl"> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
} satisfies Meta<typeof TranslationChartImageComponent> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const TranslationChartImage: Story = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters