import CardDecorator from "@saleor/storybook//CardDecorator"; import Decorator from "@saleor/storybook//Decorator"; import { AccountErrorCode } from "@saleor/types/globalTypes"; import { storiesOf } from "@storybook/react"; import React from "react"; import NewPasswordPage from "./NewPasswordPage"; storiesOf("Views / Authentication / Set up a new password", module) .addDecorator(CardDecorator) .addDecorator(Decorator) .add("default", () => ( undefined} /> )) .add("loading", () => ( undefined} /> )) .add("too short error", () => ( ({ __typename: "AccountError", code: AccountErrorCode.PASSWORD_TOO_SHORT, field, addressType: null, message: null }))} disabled={false} onSubmit={() => undefined} /> ));