Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed May 28, 2020
1 parent a8286be commit 900e847
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/@next/pages/CartPage/CartPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useCart, useCheckout, useUserDetails } from "@saleor/sdk";
import { History } from "history";
import React from "react";
import { useHistory } from "react-router-dom";
Expand All @@ -8,7 +9,6 @@ import { CartRow } from "@components/organisms";
import { Cart, CartEmpty } from "@components/templates";
import { IItems } from "@saleor/sdk/lib/api/Cart/types";
import { UserDetails_me } from "@saleor/sdk/lib/queries/gqlTypes/UserDetails";
import { useCart, useCheckout, useUserDetails } from "@saleor/sdk";
import { BASE_URL } from "@temp/core/config";
import { ITaxedMoney } from "@types";

Expand Down
2 changes: 1 addition & 1 deletion src/@next/pages/CheckoutPage/CheckoutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Button, Loader } from "@components/atoms";
import { CheckoutProgressBar } from "@components/molecules";
import { CartSummary } from "@components/organisms";
import { Checkout } from "@components/templates";
import { IItems } from "@saleor/sdk/lib/api/Cart/types";
import { useCart, useCheckout } from "@saleor/sdk";
import { IItems } from "@saleor/sdk/lib/api/Cart/types";
import { CHECKOUT_STEPS } from "@temp/core/config";
import { ITaxedMoney } from "@types";

Expand Down
3 changes: 1 addition & 2 deletions src/@next/pages/PasswordReset/PasswordReset.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { setAuthToken, useSetPassword } from "@saleor/sdk";
import { Formik } from "formik";
import React from "react";
import * as Yup from "yup";

import { StringParam, useQueryParams } from "use-query-params";

import { setAuthToken } from "@saleor/sdk";
import { useSetPassword } from "@saleor/sdk";
import { BASE_URL } from "@temp/core/config";

import { ResetPasswordForm } from "@components/molecules";
Expand Down
2 changes: 1 addition & 1 deletion src/account/AddressBook/AddressBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";
import "./scss/index.scss";

import { AddressFormModal, AddressGrid } from "@components/organisms";
import { AddressTypeEnum } from "@saleor/sdk/lib/gqlTypes/globalTypes";
import { useDefaultUserAddress, useDeleteUserAddresss } from "@saleor/sdk";
import { AddressTypeEnum } from "@saleor/sdk/lib/gqlTypes/globalTypes";
import { ShopContext } from "../../components/ShopProvider/context";

const AddressBook: React.FC<{
Expand Down
2 changes: 1 addition & 1 deletion src/components/OverlayManager/Cart/ProductList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ICheckoutModelLine } from "@saleor/sdk/lib/helpers";
import * as React from "react";
import { Link } from "react-router-dom";
import ReactSVG from "react-svg";
import { ICheckoutModelLine } from "@saleor/sdk/lib/helpers";

import { TaxedMoney } from "@components/containers";
import { Thumbnail } from "@components/molecules";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProductDescription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import isEqual from "lodash/isEqual";
import * as React from "react";

import { ProductVariantPicker } from "@components/organisms";
import { ICheckoutModelLine } from "@saleor/sdk/lib/helpers";
import {
ProductDetails_product_pricing,
ProductDetails_product_variants,
ProductDetails_product_variants_pricing,
} from "@saleor/sdk/lib/queries/gqlTypes/ProductDetails";
import { IProductVariantsAttributesSelectedValues, ITaxedMoney } from "@types";
import { ICheckoutModelLine } from "@saleor/sdk/lib/helpers";

import { TaxedMoney } from "../../@next/components/containers";
import AddToCart from "./AddToCart";
Expand Down
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import {
ServiceWorkerProvider,
} from "@components/containers";
import {
SaleorProvider,
useAuth,
createSaleorClient,
authLink,
createSaleorClient,
fireSignOut,
invalidTokenLinkWithTokenHandler,
SaleorProvider,
useAuth,
} from "@saleor/sdk";
import { defaultTheme, GlobalStyle } from "@styles";

Expand Down
2 changes: 1 addition & 1 deletion src/views/Product/View.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import "./scss/index.scss";

import { useCart } from "@saleor/sdk";
import { isEmpty } from "lodash";
import queryString from "query-string";
import React, { useEffect, useState } from "react";
import { RouteComponentProps } from "react-router";
import { useHistory } from "react-router-dom";
import { useCart } from "@saleor/sdk";

import { MetaWrapper, NotFound, OfflinePlaceholder } from "../../components";
import NetworkStatus from "../../components/NetworkStatus";
Expand Down

0 comments on commit 900e847

Please sign in to comment.