import { storiesOf } from "@storybook/react"; import * as React from "react"; import SingleSelectField from "@saleor/components/SingleSelectField"; import CardDecorator from "../../CardDecorator"; import Decorator from "../../Decorator"; const choices = [ { value: "1", label: "Apparel" }, { value: "2", label: "Groceries" }, { value: "3", label: "Books" }, { value: "4", label: "Accessories" } ]; storiesOf("Generics / SingleSelectField", module) .addDecorator(CardDecorator) .addDecorator(Decorator) .add("with no value", () => ( )) .add("with value", () => ( )) .add("with label", () => ( )) .add("with hint", () => ( )) .add("with label and hint", () => ( )) .add("with value, label and hint", () => ( )) .add("with error hint", () => ( ));