Update imports
This commit is contained in:
parent
ca085471c5
commit
2f7867bf99
16 changed files with 19 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
||||||
import moment from "moment-timezone";
|
import moment from "moment-timezone";
|
||||||
import { MutationFn, MutationResult } from "react-apollo";
|
import { MutationFunction, MutationResult } from "react-apollo";
|
||||||
import urlJoin from "url-join";
|
import urlJoin from "url-join";
|
||||||
|
|
||||||
import { ConfirmButtonTransitionState } from "./components/ConfirmButton/ConfirmButton";
|
import { ConfirmButtonTransitionState } from "./components/ConfirmButton/ConfirmButton";
|
||||||
|
@ -189,7 +189,7 @@ export function getMutationState(
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getMutationProviderData<TData, TVariables>(
|
export function getMutationProviderData<TData, TVariables>(
|
||||||
mutateFn: MutationFn<TData, TVariables>,
|
mutateFn: MutationFunction<TData, TVariables>,
|
||||||
opts: MutationResult<TData>
|
opts: MutationResult<TData>
|
||||||
): PartialMutationProviderOutput<TData, TVariables> {
|
): PartialMutationProviderOutput<TData, TVariables> {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { MutationFn } from "react-apollo";
|
import { MutationFunction } from "react-apollo";
|
||||||
|
|
||||||
import { AttributeTypeEnum, ReorderInput } from "@saleor/types/globalTypes";
|
import { AttributeTypeEnum, ReorderInput } from "@saleor/types/globalTypes";
|
||||||
import { getMutationProviderData } from "../../misc";
|
import { getMutationProviderData } from "../../misc";
|
||||||
|
@ -119,7 +119,7 @@ const ProductTypeOperations: React.StatelessComponent<
|
||||||
reorderAttributeMutation,
|
reorderAttributeMutation,
|
||||||
reorderAttributeMutationResult
|
reorderAttributeMutationResult
|
||||||
) => {
|
) => {
|
||||||
const reorderAttributeMutationFn: MutationFn<
|
const reorderAttributeMutationFn: MutationFunction<
|
||||||
ProductTypeAttributeReorder,
|
ProductTypeAttributeReorder,
|
||||||
ProductTypeAttributeReorderVariables
|
ProductTypeAttributeReorderVariables
|
||||||
> = opts => {
|
> = opts => {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
configure = require("@storybook/react").configure;
|
const { configure } = require("@storybook/react");
|
||||||
|
|
||||||
function loadStories() {
|
function loadStories() {
|
||||||
// Components
|
// Components
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
import placeholderImage from "@assets/images/placeholder255x255.png";
|
||||||
import { Omit } from "@material-ui/core";
|
import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import placeholderImage from "../@assets/images/placeholder255x255.png";
|
|
||||||
|
|
||||||
import { category as categoryFixture } from "../../../categories/fixtures";
|
import { category as categoryFixture } from "../../../categories/fixtures";
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,14 @@ import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderCollectionImage from "@assets/images/block1.jpg";
|
||||||
|
import placeholderProductImage from "@assets/images/placeholder60x60.png";
|
||||||
import CollectionDetailsPage, {
|
import CollectionDetailsPage, {
|
||||||
CollectionDetailsPageProps
|
CollectionDetailsPageProps
|
||||||
} from "../../../collections/components/CollectionDetailsPage";
|
} from "../../../collections/components/CollectionDetailsPage";
|
||||||
import { collection as collectionFixture } from "../../../collections/fixtures";
|
import { collection as collectionFixture } from "../../../collections/fixtures";
|
||||||
import { listActionsProps, pageListProps } from "../../../fixtures";
|
import { listActionsProps, pageListProps } from "../../../fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderCollectionImage from "../@assets/images/block1.jpg";
|
|
||||||
import placeholderProductImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const collection = collectionFixture(
|
const collection = collectionFixture(
|
||||||
placeholderCollectionImage,
|
placeholderCollectionImage,
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import AssignProductDialog, {
|
import AssignProductDialog, {
|
||||||
AssignProductDialogProps
|
AssignProductDialogProps
|
||||||
} from "@saleor/components/AssignProductDialog";
|
} from "@saleor/components/AssignProductDialog";
|
||||||
import { products } from "@saleor/products/fixtures";
|
import { products } from "@saleor/products/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const props: AssignProductDialogProps = {
|
const props: AssignProductDialogProps = {
|
||||||
confirmButtonState: "default",
|
confirmButtonState: "default",
|
||||||
|
|
|
@ -2,10 +2,10 @@ import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import HomePage, { HomePageProps } from "../../../home/components/HomePage";
|
import HomePage, { HomePageProps } from "../../../home/components/HomePage";
|
||||||
import { shop as shopFixture } from "../../../home/fixtures";
|
import { shop as shopFixture } from "../../../home/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const shop = shopFixture(placeholderImage);
|
const shop = shopFixture(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import OrderDetailsPage, {
|
import OrderDetailsPage, {
|
||||||
OrderDetailsPageProps
|
OrderDetailsPageProps
|
||||||
} from "../../../orders/components/OrderDetailsPage";
|
} from "../../../orders/components/OrderDetailsPage";
|
||||||
|
@ -12,7 +13,6 @@ import {
|
||||||
PaymentChargeStatusEnum
|
PaymentChargeStatusEnum
|
||||||
} from "../../../types/globalTypes";
|
} from "../../../types/globalTypes";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const order = orderFixture(placeholderImage);
|
const order = orderFixture(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@ import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import OrderDraftPage, {
|
import OrderDraftPage, {
|
||||||
OrderDraftPageProps
|
OrderDraftPageProps
|
||||||
} from "../../../orders/components/OrderDraftPage";
|
} from "../../../orders/components/OrderDraftPage";
|
||||||
import { clients, countries, draftOrder } from "../../../orders/fixtures";
|
import { clients, countries, draftOrder } from "../../../orders/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const order = draftOrder(placeholderImage);
|
const order = draftOrder(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,12 @@ import { Omit } from "@material-ui/core";
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import OrderFulfillmentDialog, {
|
import OrderFulfillmentDialog, {
|
||||||
OrderFulfillmentDialogProps
|
OrderFulfillmentDialogProps
|
||||||
} from "../../../orders/components/OrderFulfillmentDialog";
|
} from "../../../orders/components/OrderFulfillmentDialog";
|
||||||
import { order as orderFixture } from "../../../orders/fixtures";
|
import { order as orderFixture } from "../../../orders/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
const order = orderFixture(placeholderImage);
|
const order = orderFixture(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder60x60.png";
|
||||||
import OrderProductAddDialog from "../../../orders/components/OrderProductAddDialog";
|
import OrderProductAddDialog from "../../../orders/components/OrderProductAddDialog";
|
||||||
import { orderLineSearch } from "../../../orders/fixtures";
|
import { orderLineSearch } from "../../../orders/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder60x60.png";
|
|
||||||
|
|
||||||
storiesOf("Orders / OrderProductAddDialog", module)
|
storiesOf("Orders / OrderProductAddDialog", module)
|
||||||
.addDecorator(Decorator)
|
.addDecorator(Decorator)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholder from "@assets/images/placeholder1080x1080.png";
|
||||||
import ProductImagePage from "../../../products/components/ProductImagePage";
|
import ProductImagePage from "../../../products/components/ProductImagePage";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholder from "../@assets/images/placeholder1080x1080.png";
|
|
||||||
|
|
||||||
const image = { id: "", url: placeholder, alt: "Lorem ipsum" };
|
const image = { id: "", url: placeholder, alt: "Lorem ipsum" };
|
||||||
const images = (Array(8) as any)
|
const images = (Array(8) as any)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder255x255.png";
|
||||||
import { defaultListSettings } from "@saleor/config";
|
import { defaultListSettings } from "@saleor/config";
|
||||||
import { ListViews } from "@saleor/types";
|
import { ListViews } from "@saleor/types";
|
||||||
import { category as categoryFixture } from "../../../categories/fixtures";
|
import { category as categoryFixture } from "../../../categories/fixtures";
|
||||||
|
@ -14,7 +15,6 @@ import ProductListPage, {
|
||||||
ProductListPageProps
|
ProductListPageProps
|
||||||
} from "../../../products/components/ProductListPage";
|
} from "../../../products/components/ProductListPage";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder255x255.png";
|
|
||||||
|
|
||||||
const products = categoryFixture(placeholderImage).products.edges.map(
|
const products = categoryFixture(placeholderImage).products.edges.map(
|
||||||
edge => edge.node
|
edge => edge.node
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder255x255.png";
|
||||||
import { collections } from "@saleor/collections/fixtures";
|
import { collections } from "@saleor/collections/fixtures";
|
||||||
import { listActionsProps } from "@saleor/fixtures";
|
import { listActionsProps } from "@saleor/fixtures";
|
||||||
import ProductUpdatePage, {
|
import ProductUpdatePage, {
|
||||||
|
@ -8,7 +9,6 @@ import ProductUpdatePage, {
|
||||||
} from "@saleor/products/components/ProductUpdatePage";
|
} from "@saleor/products/components/ProductUpdatePage";
|
||||||
import { product as productFixture } from "@saleor/products/fixtures";
|
import { product as productFixture } from "@saleor/products/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder255x255.png";
|
|
||||||
|
|
||||||
const product = productFixture(placeholderImage);
|
const product = productFixture(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder255x255.png";
|
||||||
import { formError } from "@saleor/storybook/misc";
|
import { formError } from "@saleor/storybook/misc";
|
||||||
import ProductVariantCreatePage from "../../../products/components/ProductVariantCreatePage";
|
import ProductVariantCreatePage from "../../../products/components/ProductVariantCreatePage";
|
||||||
import { product as productFixture } from "../../../products/fixtures";
|
import { product as productFixture } from "../../../products/fixtures";
|
||||||
import Decorator from "../../Decorator";
|
import Decorator from "../../Decorator";
|
||||||
import placeholderImage from "../@assets/images/placeholder255x255.png";
|
|
||||||
|
|
||||||
const product = productFixture(placeholderImage);
|
const product = productFixture(placeholderImage);
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
import { storiesOf } from "@storybook/react";
|
import { storiesOf } from "@storybook/react";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import placeholderImage from "@assets/images/placeholder255x255.png";
|
||||||
import ProductVariantImageSelectDialog from "../../../products/components/ProductVariantImageSelectDialog";
|
import ProductVariantImageSelectDialog from "../../../products/components/ProductVariantImageSelectDialog";
|
||||||
import {
|
import {
|
||||||
variantImages as variantImagesFixture,
|
variantImages as variantImagesFixture,
|
||||||
variantProductImages as variantProductImagesFixture
|
variantProductImages as variantProductImagesFixture
|
||||||
} from "../../../products/fixtures";
|
} from "../../../products/fixtures";
|
||||||
import placeholderImage from "../@assets/images/placeholder255x255.png";
|
|
||||||
|
|
||||||
const variantImages = variantImagesFixture(placeholderImage);
|
const variantImages = variantImagesFixture(placeholderImage);
|
||||||
const variantProductImages = variantProductImagesFixture(placeholderImage);
|
const variantProductImages = variantProductImagesFixture(placeholderImage);
|
||||||
|
|
Loading…
Reference in a new issue