import { storiesOf } from "@storybook/react"; import React from "react"; import SingleSelectField from "@saleor/components/SingleSelectField"; import CardDecorator from "../../CardDecorator"; import Decorator from "../../Decorator"; const choices = [ { label: "Apparel", value: "1" }, { label: "Groceries", value: "2" }, { label: "Books", value: "3" }, { label: "Accessories", value: "4" } ]; 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", () => ( ));