saleor-dashboard/src/translations/components/TranslationsLanguageListPage/TranslationsLanguageListPage.stories.tsx

23 lines
746 B
TypeScript
Raw Normal View History

2023-01-05 12:34:34 +00:00
import Decorator from "@saleor/storybook/Decorator";
2019-06-19 14:40:52 +00:00
import { storiesOf } from "@storybook/react";
2019-08-09 10:26:22 +00:00
import React from "react";
2019-06-19 14:40:52 +00:00
import TranslationsLanguageListPage, {
TranslationsLanguageListPageProps,
2019-06-19 14:40:52 +00:00
} from "../../../translations/components/TranslationsLanguageListPage";
import { languages } from "../../../translations/fixtures";
const props: TranslationsLanguageListPageProps = {
languages,
2019-06-19 14:40:52 +00:00
};
2023-01-05 12:34:34 +00:00
storiesOf("Translations / Language list", module)
2019-06-19 14:40:52 +00:00
.addDecorator(Decorator)
.add("default", () => <TranslationsLanguageListPage {...props} />)
.add("loading", () => (
<TranslationsLanguageListPage {...props} languages={undefined} />
))
.add("no data", () => (
<TranslationsLanguageListPage {...props} languages={[]} />
));