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, {
|
2022-06-21 09:36:55 +00:00
|
|
|
TranslationsLanguageListPageProps,
|
2019-06-19 14:40:52 +00:00
|
|
|
} from "../../../translations/components/TranslationsLanguageListPage";
|
|
|
|
import { languages } from "../../../translations/fixtures";
|
|
|
|
|
|
|
|
const props: TranslationsLanguageListPageProps = {
|
2022-06-21 09:36:55 +00:00
|
|
|
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={[]} />
|
|
|
|
));
|