2019-09-02 15:56:59 +00:00
|
|
|
import { storiesOf } from "@storybook/react";
|
|
|
|
import React from "react";
|
|
|
|
|
2019-09-04 13:09:19 +00:00
|
|
|
import CardDecorator from "@saleor/storybook//CardDecorator";
|
2019-09-02 15:56:59 +00:00
|
|
|
import Decorator from "@saleor/storybook//Decorator";
|
|
|
|
import NewPasswordPage from "./NewPasswordPage";
|
|
|
|
|
|
|
|
storiesOf("Views / Authentication / Set up a new password", module)
|
2019-09-04 13:09:19 +00:00
|
|
|
.addDecorator(CardDecorator)
|
2019-09-02 15:56:59 +00:00
|
|
|
.addDecorator(Decorator)
|
2019-09-02 19:23:37 +00:00
|
|
|
.add("default", () => (
|
2020-04-07 00:18:14 +00:00
|
|
|
<NewPasswordPage error={null} disabled={false} onSubmit={() => undefined} />
|
2019-09-02 19:23:37 +00:00
|
|
|
))
|
|
|
|
.add("loading", () => (
|
2020-04-07 00:18:14 +00:00
|
|
|
<NewPasswordPage error={null} disabled={true} onSubmit={() => undefined} />
|
2019-09-02 19:23:37 +00:00
|
|
|
));
|