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 CountryTaxesPage, {
|
|
|
|
CountryTaxesPageProps
|
|
|
|
} from "../../../taxes/components/CountryTaxesPage";
|
|
|
|
import Decorator from "../../Decorator";
|
|
|
|
import { countries } from "./fixtures";
|
|
|
|
|
|
|
|
const props: CountryTaxesPageProps = {
|
|
|
|
countryName: "Austria",
|
|
|
|
onBack: () => undefined,
|
|
|
|
taxCategories: countries[0].vat.reducedRates
|
|
|
|
};
|
|
|
|
|
|
|
|
storiesOf("Views / Taxes / Reduced Tax Categories", module)
|
|
|
|
.addDecorator(Decorator)
|
|
|
|
.add("default", () => <CountryTaxesPage {...props} />)
|
|
|
|
.add("loading", () => (
|
|
|
|
<CountryTaxesPage
|
|
|
|
{...props}
|
|
|
|
countryName={undefined}
|
|
|
|
taxCategories={undefined}
|
|
|
|
/>
|
|
|
|
));
|