Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Alias hooks to @hooks
dominik-zeglendaf6808e56d7
diff --git a/saleor/static/dashboard-next/auth/components/LoginPage/LoginPage.tsx b/saleor/static/dashboard-next/auth/components/LoginPage/LoginPage.tsxindex 0357e52d7f..becf4b22d5 100644--- a/saleor/static/dashboard-next/auth/components/LoginPage/LoginPage.tsx+++ b/saleor/static/dashboard-next/auth/components/LoginPage/LoginPage.tsx@@ -13,10 +13,10 @@ import SVG from "react-inlinesvg";import { ControlledCheckbox } from "@components/ControlledCheckbox";import Form from "@components/Form";import { FormSpacer } from "@components/FormSpacer";+import useTheme from "@hooks/useTheme";import * as backgroundArt from "../../../../images/login-background.svg";import * as saleorDarkLogo from "../../../../images/logo-dark.svg";import * as saleorLightLogo from "../../../../images/logo-light.svg";-import useTheme from "../../../hooks/useTheme";import i18n from "../../../i18n";export interface FormData {diff --git a/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx b/saleor/static/dashboard-next/categories/views/CategoryCreate.tsxindex 0d6778d8e3..b37bab44fc 100644--- a/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx+++ b/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import CategoryCreatePage from "../components/CategoryCreatePage";diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsxindex fe3b4fc0bf..2e1e97e885 100644--- a/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails.tsx@@ -5,10 +5,10 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { TypedProductBulkDeleteMutation } from "../../products/mutations";diff --git a/saleor/static/dashboard-next/categories/views/CategoryList.tsx b/saleor/static/dashboard-next/categories/views/CategoryList.tsxindex b364243f76..3b62dd4a05 100644--- a/saleor/static/dashboard-next/categories/views/CategoryList.tsx+++ b/saleor/static/dashboard-next/categories/views/CategoryList.tsx@@ -4,9 +4,9 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { CategoryListPage } from "../components/CategoryListPage/CategoryListPage";diff --git a/saleor/static/dashboard-next/collections/views/CollectionCreate.tsx b/saleor/static/dashboard-next/collections/views/CollectionCreate.tsxindex 66ae16dc2d..ba299241b3 100644--- a/saleor/static/dashboard-next/collections/views/CollectionCreate.tsx+++ b/saleor/static/dashboard-next/collections/views/CollectionCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { CollectionCreateInput } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsxindex bf39a630f7..62338accba 100644--- a/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx+++ b/saleor/static/dashboard-next/collections/views/CollectionDetails.tsx@@ -5,12 +5,12 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import AssignProductDialog from "@components/AssignProductDialog";import { WindowTitle } from "@components/WindowTitle";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../config";import SearchProducts from "../../containers/SearchProducts";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { productUrl } from "../../products/urls";diff --git a/saleor/static/dashboard-next/collections/views/CollectionList.tsx b/saleor/static/dashboard-next/collections/views/CollectionList.tsxindex c890224c25..4c50d0ea96 100644--- a/saleor/static/dashboard-next/collections/views/CollectionList.tsx+++ b/saleor/static/dashboard-next/collections/views/CollectionList.tsx@@ -5,10 +5,10 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import CollectionListPage from "../components/CollectionListPage/CollectionListPage";diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsxindex edd66b5cbc..945a28ddb1 100644--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx@@ -18,11 +18,11 @@ import SVG from "react-inlinesvg";import { RouteComponentProps, withRouter } from "react-router";import AppProgressProvider from "@components/AppProgress";+import useNavigator from "@hooks/useNavigator";+import useTheme from "@hooks/useTheme";+import useUser from "@hooks/useUser";import * as saleorDarkLogo from "../../../images/logo-dark.svg";import * as saleorLightLogo from "../../../images/logo-light.svg";-import useNavigator from "../../hooks/useNavigator";-import useTheme from "../../hooks/useTheme";-import useUser from "../../hooks/useUser";import i18n from "../../i18n";import ArrowDropdown from "../../icons/ArrowDropdown";import Container from "../Container";diff --git a/saleor/static/dashboard-next/components/Date/Date.tsx b/saleor/static/dashboard-next/components/Date/Date.tsxindex 7ef13c23d8..e46f2638f0 100644--- a/saleor/static/dashboard-next/components/Date/Date.tsx+++ b/saleor/static/dashboard-next/components/Date/Date.tsx@@ -2,7 +2,7 @@ import Tooltip from "@material-ui/core/Tooltip";import * as moment from "moment-timezone";import * as React from "react";-import useDateLocalize from "../../hooks/useDateLocalize";+import useDateLocalize from "@hooks/useDateLocalize";import { LocaleConsumer } from "../Locale";import { Consumer } from "./DateContext";diff --git a/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx b/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsxindex 880b8b8722..e1a8bf8462 100644--- a/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx+++ b/saleor/static/dashboard-next/components/SaveButtonBar/SaveButtonBar.tsx@@ -9,7 +9,7 @@ import {import classNames from "classnames";import * as React from "react";-import useScroll from "../../hooks/useScroll";+import useScroll from "@hooks/useScroll";import i18n from "../../i18n";import { maybe } from "../../misc";import AppActionContext from "../AppLayout/AppActionContext";diff --git a/saleor/static/dashboard-next/components/TablePagination/TablePaginationActions.tsx b/saleor/static/dashboard-next/components/TablePagination/TablePaginationActions.tsxindex e7e64650d3..c21115fe0e 100644--- a/saleor/static/dashboard-next/components/TablePagination/TablePaginationActions.tsx+++ b/saleor/static/dashboard-next/components/TablePagination/TablePaginationActions.tsx@@ -1,3 +1,4 @@+import useTheme from "@hooks/useTheme";import IconButton from "@material-ui/core/IconButton";import {createStyles,@@ -10,7 +11,6 @@ import ArrowLeft from "@material-ui/icons/ArrowLeft";import ArrowRight from "@material-ui/icons/ArrowRight";import * as classNames from "classnames";import * as React from "react";-import useTheme from "../../hooks/useTheme";const styles = (theme: Theme) =>createStyles({diff --git a/saleor/static/dashboard-next/components/VisibilityCard/VisibilityCard.tsx b/saleor/static/dashboard-next/components/VisibilityCard/VisibilityCard.tsxindex 5808ae9d99..974869712a 100644--- a/saleor/static/dashboard-next/components/VisibilityCard/VisibilityCard.tsx+++ b/saleor/static/dashboard-next/components/VisibilityCard/VisibilityCard.tsx@@ -12,7 +12,7 @@ import * as React from "react";import CardTitle from "@components/CardTitle";import ControlledSwitch from "@components/ControlledSwitch";import { FormSpacer } from "@components/FormSpacer";-import useDateLocalize from "../../hooks/useDateLocalize";+import useDateLocalize from "@hooks/useDateLocalize";import i18n from "../../i18n";import { DateContext } from "../Date/DateContext";diff --git a/saleor/static/dashboard-next/components/WindowTitle/index.tsx b/saleor/static/dashboard-next/components/WindowTitle/index.tsxindex b7757cd596..54977df6f6 100644--- a/saleor/static/dashboard-next/components/WindowTitle/index.tsx+++ b/saleor/static/dashboard-next/components/WindowTitle/index.tsx@@ -1,7 +1,7 @@import * as React from "react";import { Helmet } from "react-helmet";-import useShop from "../../hooks/useShop";+import useShop from "@hooks/useShop";interface WindowTitleProps {title: string;diff --git a/saleor/static/dashboard-next/configuration/index.tsx b/saleor/static/dashboard-next/configuration/index.tsxindex 4223b1c0a8..ba05a1f7b5 100644--- a/saleor/static/dashboard-next/configuration/index.tsx+++ b/saleor/static/dashboard-next/configuration/index.tsx@@ -1,8 +1,8 @@import * as React from "react";+import useNavigator from "@hooks/useNavigator";+import useUser from "@hooks/useUser";import { WindowTitle } from "../components/WindowTitle";-import useNavigator from "../hooks/useNavigator";-import useUser from "../hooks/useUser";import i18n from "../i18n";import Navigation from "../icons/Navigation";import Pages from "../icons/Pages";diff --git a/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx b/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsxindex d9b8e433ea..a7d5d64cd7 100644--- a/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerAddresses.tsx@@ -3,9 +3,9 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import CustomerAddressDialog from "../components/CustomerAddressDialog";diff --git a/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx b/saleor/static/dashboard-next/customers/views/CustomerCreate.tsxindex 9d7808cb8d..29266b20d6 100644--- a/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { maybe } from "../../misc";import CustomerCreatePage from "../components/CustomerCreatePage";diff --git a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsxindex d2450b7fd1..051a033111 100644--- a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx@@ -3,8 +3,8 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { orderListUrl, orderUrl } from "../../orders/urls";diff --git a/saleor/static/dashboard-next/customers/views/CustomerList.tsx b/saleor/static/dashboard-next/customers/views/CustomerList.tsxindex 5c7c826a46..8420b5971b 100644--- a/saleor/static/dashboard-next/customers/views/CustomerList.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerList.tsx@@ -4,10 +4,10 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import CustomerListPage from "../components/CustomerListPage";diff --git a/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx b/saleor/static/dashboard-next/discounts/views/SaleCreate.tsxindex a8db732ca4..3751ef83f6 100644--- a/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx+++ b/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx@@ -1,9 +1,9 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import { DiscountValueTypeEnum, SaleType } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/discounts/views/SaleDetails.tsx b/saleor/static/dashboard-next/discounts/views/SaleDetails.tsxindex e36cafab03..a9933accbf 100644--- a/saleor/static/dashboard-next/discounts/views/SaleDetails.tsx+++ b/saleor/static/dashboard-next/discounts/views/SaleDetails.tsx@@ -7,17 +7,17 @@ import AssignCategoriesDialog from "@components/AssignCategoryDialog";import AssignCollectionDialog from "@components/AssignCollectionDialog";import AssignProductDialog from "@components/AssignProductDialog";import { WindowTitle } from "@components/WindowTitle";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import { categoryUrl } from "../../categories/urls";import { collectionUrl } from "../../collections/urls";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../config";import SearchCategories from "../../containers/SearchCategories";import SearchCollections from "../../containers/SearchCollections";import SearchProducts from "../../containers/SearchProducts";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import { productUrl } from "../../products/urls";diff --git a/saleor/static/dashboard-next/discounts/views/SaleList.tsx b/saleor/static/dashboard-next/discounts/views/SaleList.tsxindex 9803c5c20a..f4f92527e6 100644--- a/saleor/static/dashboard-next/discounts/views/SaleList.tsx+++ b/saleor/static/dashboard-next/discounts/views/SaleList.tsx@@ -5,11 +5,11 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import SaleListPage from "../components/SaleListPage";diff --git a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsxindex 38b296eb61..4ef857907c 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx@@ -1,9 +1,9 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import {diff --git a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsxindex 27ee195bbb..ab0ce912be 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx@@ -7,17 +7,17 @@ import AssignCategoriesDialog from "@components/AssignCategoryDialog";import AssignCollectionDialog from "@components/AssignCollectionDialog";import AssignProductDialog from "@components/AssignProductDialog";import { WindowTitle } from "@components/WindowTitle";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import { categoryUrl } from "../../categories/urls";import { collectionUrl } from "../../collections/urls";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../config";import SearchCategories from "../../containers/SearchCategories";import SearchCollections from "../../containers/SearchCollections";import SearchProducts from "../../containers/SearchProducts";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import { productUrl } from "../../products/urls";diff --git a/saleor/static/dashboard-next/discounts/views/VoucherList.tsx b/saleor/static/dashboard-next/discounts/views/VoucherList.tsxindex 9926976d01..f7b17da220 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherList.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherList.tsx@@ -5,11 +5,11 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import VoucherListPage from "../components/VoucherListPage";diff --git a/saleor/static/dashboard-next/home/views/index.tsx b/saleor/static/dashboard-next/home/views/index.tsxindex 6aafa36815..cac8c186bf 100644--- a/saleor/static/dashboard-next/home/views/index.tsx+++ b/saleor/static/dashboard-next/home/views/index.tsx@@ -1,7 +1,7 @@import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useUser from "../../hooks/useUser";+import useNavigator from "@hooks/useNavigator";+import useUser from "@hooks/useUser";import { getUserName, maybe } from "../../misc";import { orderListUrl } from "../../orders/urls";import { productListUrl, productVariantEditUrl } from "../../products/urls";diff --git a/saleor/static/dashboard-next/hooks/useDateLocalize.ts b/saleor/static/dashboard-next/hooks/useDateLocalize.tsindex 98d5f36eed..8e4d28a9ac 100644--- a/saleor/static/dashboard-next/hooks/useDateLocalize.ts+++ b/saleor/static/dashboard-next/hooks/useDateLocalize.ts@@ -1,7 +1,7 @@import * as moment from "moment-timezone";import { useContext } from "react";-import { LocaleContext } from "../components/Locale";+import { LocaleContext } from "@components/Locale";function useDateLocalize(): (date: string) => string {const locale = useContext(LocaleContext);diff --git a/saleor/static/dashboard-next/hooks/useLocale.ts b/saleor/static/dashboard-next/hooks/useLocale.tsindex 60499f582c..9ec7e1080b 100644--- a/saleor/static/dashboard-next/hooks/useLocale.ts+++ b/saleor/static/dashboard-next/hooks/useLocale.ts@@ -1,6 +1,6 @@import { useContext } from "react";-import { LocaleContext } from "../components/Locale";+import { LocaleContext } from "@components/Locale";function useLocale() {const themeInfo = useContext(LocaleContext);diff --git a/saleor/static/dashboard-next/hooks/useNotifier.ts b/saleor/static/dashboard-next/hooks/useNotifier.tsindex 644d2f47f8..39e0862997 100644--- a/saleor/static/dashboard-next/hooks/useNotifier.ts+++ b/saleor/static/dashboard-next/hooks/useNotifier.ts@@ -1,6 +1,6 @@import { useContext } from "react";-import { IMessageContext, MessageContext } from "../components/messages";+import { IMessageContext, MessageContext } from "@components/messages";export type UseNotifierResult = IMessageContext;function useNotifier(): UseNotifierResult {diff --git a/saleor/static/dashboard-next/hooks/useShop.ts b/saleor/static/dashboard-next/hooks/useShop.tsindex 315f934f1e..c7c329a905 100644--- a/saleor/static/dashboard-next/hooks/useShop.ts+++ b/saleor/static/dashboard-next/hooks/useShop.ts@@ -1,6 +1,6 @@import { useContext } from "react";-import { shopContext } from "../components/Shop";+import { shopContext } from "@components/Shop";function useShop() {return useContext(shopContext);diff --git a/saleor/static/dashboard-next/hooks/useTheme.ts b/saleor/static/dashboard-next/hooks/useTheme.tsindex 142e33d7a4..f4a8c33252 100644--- a/saleor/static/dashboard-next/hooks/useTheme.ts+++ b/saleor/static/dashboard-next/hooks/useTheme.ts@@ -1,6 +1,6 @@import { useContext } from "react";-import { ThemeContext } from "../components/Theme";+import { ThemeContext } from "@components/Theme";function useTheme() {const themeInfo = useContext(ThemeContext);diff --git a/saleor/static/dashboard-next/navigation/components/MenuItems/MenuItems.tsx b/saleor/static/dashboard-next/navigation/components/MenuItems/MenuItems.tsxindex 480987101d..3f70e6c05d 100644--- a/saleor/static/dashboard-next/navigation/components/MenuItems/MenuItems.tsx+++ b/saleor/static/dashboard-next/navigation/components/MenuItems/MenuItems.tsx@@ -18,7 +18,7 @@ import SortableTree, { NodeRendererProps, TreeItem } from "react-sortable-tree";import CardTitle from "@components/CardTitle";import Skeleton from "@components/Skeleton";-import useTheme from "../../../hooks/useTheme";+import useTheme from "@hooks/useTheme";import i18n from "../../../i18n";import Draggable from "../../../icons/Draggable";import { MenuDetails_menu_items } from "../../types/MenuDetails";diff --git a/saleor/static/dashboard-next/navigation/views/MenuDetails/index.tsx b/saleor/static/dashboard-next/navigation/views/MenuDetails/index.tsxindex f51d117b4a..4e2963e14c 100644--- a/saleor/static/dashboard-next/navigation/views/MenuDetails/index.tsx+++ b/saleor/static/dashboard-next/navigation/views/MenuDetails/index.tsx@@ -2,14 +2,14 @@ import DialogContentText from "@material-ui/core/DialogContentText";import * as React from "react";import ActionDialog from "@components/ActionDialog";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import { categoryUrl } from "../../../categories/urls";import { collectionUrl } from "../../../collections/urls";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../../config";import SearchCategories from "../../../containers/SearchCategories";import SearchCollections from "../../../containers/SearchCollections";import SearchPages from "../../../containers/SearchPages";-import useNavigator from "../../../hooks/useNavigator";-import useNotifier from "../../../hooks/useNotifier";import i18n from "../../../i18n";import { getMutationState, maybe } from "../../../misc";import { pageUrl } from "../../../pages/urls";diff --git a/saleor/static/dashboard-next/navigation/views/MenuList.tsx b/saleor/static/dashboard-next/navigation/views/MenuList.tsxindex 8dc32067ab..a14f6f6d8a 100644--- a/saleor/static/dashboard-next/navigation/views/MenuList.tsx+++ b/saleor/static/dashboard-next/navigation/views/MenuList.tsx@@ -3,11 +3,11 @@ import DialogContentText from "@material-ui/core/DialogContentText";import * as React from "react";import ActionDialog from "@components/ActionDialog";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import { configurationMenuUrl } from "../../configuration";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import MenuCreateDialog from "../components/MenuCreateDialog";diff --git a/saleor/static/dashboard-next/orders/views/OrderDetails/OrderDetailsMessages.tsx b/saleor/static/dashboard-next/orders/views/OrderDetails/OrderDetailsMessages.tsxindex 4ab768709a..c98ae31e74 100644--- a/saleor/static/dashboard-next/orders/views/OrderDetails/OrderDetailsMessages.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderDetails/OrderDetailsMessages.tsx@@ -1,7 +1,7 @@import * as React from "react";-import useNavigator from "../../../hooks/useNavigator";-import useNotifier from "../../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../../i18n";import { maybe } from "../../../misc";import { OrderAddNote } from "../../types/OrderAddNote";diff --git a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsxindex 8088633d91..4ee6794cce 100644--- a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx@@ -1,10 +1,10 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";+import useNavigator from "@hooks/useNavigator";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../../config";import SearchCustomers from "../../../containers/SearchCustomers";import { customerUrl } from "../../../customers/urls";-import useNavigator from "../../../hooks/useNavigator";import { getMutationState, maybe, transformAddressToForm } from "../../../misc";import { productUrl } from "../../../products/urls";import { OrderStatus } from "../../../types/globalTypes";diff --git a/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx b/saleor/static/dashboard-next/orders/views/OrderDraftList.tsxindex a850a3ac0a..95da102944 100644--- a/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx@@ -4,10 +4,10 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import OrderDraftListPage from "../components/OrderDraftListPage";diff --git a/saleor/static/dashboard-next/orders/views/OrderList.tsx b/saleor/static/dashboard-next/orders/views/OrderList.tsxindex ab11755f0b..2d3de52038 100644--- a/saleor/static/dashboard-next/orders/views/OrderList.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderList.tsx@@ -1,10 +1,10 @@import Button from "@material-ui/core/Button";import * as React from "react";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { OrderStatusFilter } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/pages/views/PageCreate.tsx b/saleor/static/dashboard-next/pages/views/PageCreate.tsxindex d448285079..3f3e4cc5a6 100644--- a/saleor/static/dashboard-next/pages/views/PageCreate.tsx+++ b/saleor/static/dashboard-next/pages/views/PageCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import PageDetailsPage from "../components/PageDetailsPage";diff --git a/saleor/static/dashboard-next/pages/views/PageDetails.tsx b/saleor/static/dashboard-next/pages/views/PageDetails.tsxindex c4785ed437..cb39e37a03 100644--- a/saleor/static/dashboard-next/pages/views/PageDetails.tsx+++ b/saleor/static/dashboard-next/pages/views/PageDetails.tsx@@ -3,8 +3,8 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { PageInput } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/pages/views/PageList.tsx b/saleor/static/dashboard-next/pages/views/PageList.tsxindex 0f578c0cbc..f563bf0b77 100644--- a/saleor/static/dashboard-next/pages/views/PageList.tsx+++ b/saleor/static/dashboard-next/pages/views/PageList.tsx@@ -5,11 +5,11 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import { configurationMenuUrl } from "../../configuration";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import PageListPage from "../components/PageListPage/PageListPage";diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsxindex dcfbd6b130..1b6c06c506 100644--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { maybe } from "../../misc";import ProductTypeCreatePage, {diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsxindex 6cf24c4c06..6d48263295 100644--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeList.tsx@@ -4,11 +4,11 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import { configurationMenuUrl } from "../../configuration";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import ProductTypeListPage from "../components/ProductTypeListPage";diff --git a/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx b/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsxindex 38febdfbad..d9282cb4e1 100644--- a/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx+++ b/saleor/static/dashboard-next/productTypes/views/ProductTypeUpdate/index.tsx@@ -3,8 +3,8 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../../hooks/useNavigator";-import useNotifier from "../../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../../i18n";import { getMutationState, maybe } from "../../../misc";import { AttributeTypeEnum } from "../../../types/globalTypes";diff --git a/saleor/static/dashboard-next/products/views/ProductCreate.tsx b/saleor/static/dashboard-next/products/views/ProductCreate.tsxindex 71167b20a8..48fa8f1c8d 100644--- a/saleor/static/dashboard-next/products/views/ProductCreate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductCreate.tsx@@ -1,12 +1,12 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../config";import SearchCategories from "../../containers/SearchCategories";import SearchCollections from "../../containers/SearchCollections";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import ProductCreatePage, { FormData } from "../components/ProductCreatePage";diff --git a/saleor/static/dashboard-next/products/views/ProductImage.tsx b/saleor/static/dashboard-next/products/views/ProductImage.tsxindex 3c19bef6ca..bef6c5d35b 100644--- a/saleor/static/dashboard-next/products/views/ProductImage.tsx+++ b/saleor/static/dashboard-next/products/views/ProductImage.tsx@@ -2,8 +2,8 @@ import DialogContentText from "@material-ui/core/DialogContentText";import * as React from "react";import ActionDialog from "@components/ActionDialog";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import ProductImagePage from "../components/ProductImagePage";diff --git a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsxindex ff21ebd7b9..5650efa4b8 100644--- a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx+++ b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx@@ -9,14 +9,12 @@ import DeleteFilterTabDialog from "@components/DeleteFilterTabDialog";import SaveFilterTabDialog, {SaveFilterTabDialogFormData} from "@components/SaveFilterTabDialog";-import useBulkActions from "../../../hooks/useBulkActions";-import useLocale from "../../../hooks/useLocale";-import useNavigator from "../../../hooks/useNavigator";-import useNotifier from "../../../hooks/useNotifier";-import usePaginator, {- createPaginationState-} from "../../../hooks/usePaginator";-import useShop from "../../../hooks/useShop";+import useBulkActions from "@hooks/useBulkActions";+import useLocale from "@hooks/useLocale";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import i18n from "../../../i18n";import { getMutationState, maybe } from "../../../misc";import ProductListCard from "../../components/ProductListCard";diff --git a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx b/saleor/static/dashboard-next/products/views/ProductUpdate.tsxindex 7f946af307..0a4f8b5729 100644--- a/saleor/static/dashboard-next/products/views/ProductUpdate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductUpdate.tsx@@ -6,13 +6,13 @@ import { arrayMove } from "react-sortable-hoc";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import * as placeholderImg from "../../../images/placeholder255x255.png";import { DEFAULT_INITIAL_SEARCH_DATA } from "../../config";import SearchCategories from "../../containers/SearchCategories";import SearchCollections from "../../containers/SearchCollections";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import { productTypeUrl } from "../../productTypes/urls";diff --git a/saleor/static/dashboard-next/products/views/ProductVariant.tsx b/saleor/static/dashboard-next/products/views/ProductVariant.tsxindex 81ef6d5ba0..b66f267304 100644--- a/saleor/static/dashboard-next/products/views/ProductVariant.tsx+++ b/saleor/static/dashboard-next/products/views/ProductVariant.tsx@@ -1,9 +1,9 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import * as placeholderImg from "../../../images/placeholder255x255.png";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import ProductVariantDeleteDialog from "../components/ProductVariantDeleteDialog";diff --git a/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx b/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsxindex 3cfc936663..6874ee93d5 100644--- a/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx+++ b/saleor/static/dashboard-next/products/views/ProductVariantCreate.tsx@@ -1,9 +1,9 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { decimal, getMutationState, maybe } from "../../misc";import ProductVariantCreatePage from "../components/ProductVariantCreatePage";diff --git a/saleor/static/dashboard-next/shipping/views/ShippingZoneCreate.tsx b/saleor/static/dashboard-next/shipping/views/ShippingZoneCreate.tsxindex ccbcd7aa1d..cfeccd6adc 100644--- a/saleor/static/dashboard-next/shipping/views/ShippingZoneCreate.tsx+++ b/saleor/static/dashboard-next/shipping/views/ShippingZoneCreate.tsx@@ -1,8 +1,8 @@import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import ShippingZoneCreatePage from "../components/ShippingZoneCreatePage";diff --git a/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/ShippingZoneDetailsDialogs.tsx b/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/ShippingZoneDetailsDialogs.tsxindex 9d974752bd..c93af8c8ec 100644--- a/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/ShippingZoneDetailsDialogs.tsx+++ b/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/ShippingZoneDetailsDialogs.tsx@@ -3,8 +3,8 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { ConfirmButtonTransitionState } from "@components/ConfirmButton";-import useNavigator from "../../../hooks/useNavigator";-import useShop from "../../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useShop from "@hooks/useShop";import i18n from "../../../i18n";import { maybe } from "../../../misc";import { ShippingMethodTypeEnum } from "../../../types/globalTypes";diff --git a/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/index.tsx b/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/index.tsxindex 9e83eb14ff..db1640c325 100644--- a/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/index.tsx+++ b/saleor/static/dashboard-next/shipping/views/ShippingZoneDetails/index.tsx@@ -1,7 +1,7 @@import * as React from "react";-import useNavigator from "../../../hooks/useNavigator";-import useNotifier from "../../../hooks/useNotifier";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import i18n from "../../../i18n";import { getMutationState, maybe } from "../../../misc";import { ShippingMethodTypeEnum } from "../../../types/globalTypes";diff --git a/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx b/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsxindex 4496be94bf..2530b3cafc 100644--- a/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx+++ b/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx@@ -4,12 +4,12 @@ import DeleteIcon from "@material-ui/icons/Delete";import * as React from "react";import ActionDialog from "@components/ActionDialog";+import useBulkActions from "@hooks/useBulkActions";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import { configurationMenuUrl } from "../../configuration";-import useBulkActions from "../../hooks/useBulkActions";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import ShippingZonesListPage from "../components/ShippingZonesListPage";diff --git a/saleor/static/dashboard-next/siteSettings/views/index.tsx b/saleor/static/dashboard-next/siteSettings/views/index.tsxindex 2094b1c8b3..3bbd1703cb 100644--- a/saleor/static/dashboard-next/siteSettings/views/index.tsx+++ b/saleor/static/dashboard-next/siteSettings/views/index.tsx@@ -1,9 +1,9 @@import * as React from "react";import { WindowTitle } from "@components/WindowTitle";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";import { configurationMenuUrl } from "../../configuration";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { AuthorizationKeyType } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/staff/views/StaffDetails.tsx b/saleor/static/dashboard-next/staff/views/StaffDetails.tsxindex 9dc510dd88..6f413b58b8 100644--- a/saleor/static/dashboard-next/staff/views/StaffDetails.tsx+++ b/saleor/static/dashboard-next/staff/views/StaffDetails.tsx@@ -3,9 +3,9 @@ import * as React from "react";import ActionDialog from "@components/ActionDialog";import { WindowTitle } from "@components/WindowTitle";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useUser from "../../hooks/useUser";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useUser from "@hooks/useUser";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import StaffDetailsPage from "../components/StaffDetailsPage/StaffDetailsPage";diff --git a/saleor/static/dashboard-next/staff/views/StaffList.tsx b/saleor/static/dashboard-next/staff/views/StaffList.tsxindex 6dd293197c..f068e45d48 100644--- a/saleor/static/dashboard-next/staff/views/StaffList.tsx+++ b/saleor/static/dashboard-next/staff/views/StaffList.tsx@@ -1,9 +1,9 @@import * as React from "react";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";import { configurationMenuUrl } from "../../configuration";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import StaffAddMemberDialog, {diff --git a/saleor/static/dashboard-next/storybook/stories/components/messages.tsx b/saleor/static/dashboard-next/storybook/stories/components/messages.tsxindex 6c1d44c3b5..1aed90d28e 100644--- a/saleor/static/dashboard-next/storybook/stories/components/messages.tsx+++ b/saleor/static/dashboard-next/storybook/stories/components/messages.tsx@@ -2,7 +2,7 @@ import Button from "@material-ui/core/Button";import { storiesOf } from "@storybook/react";import * as React from "react";-import useNotifier from "../../../hooks/useNotifier";+import useNotifier from "@hooks/useNotifier";import CardDecorator from "../../CardDecorator";import Decorator from "../../Decorator";diff --git a/saleor/static/dashboard-next/taxes/views/CountryList.tsx b/saleor/static/dashboard-next/taxes/views/CountryList.tsxindex 623c40a1e3..3f29d67b7e 100644--- a/saleor/static/dashboard-next/taxes/views/CountryList.tsx+++ b/saleor/static/dashboard-next/taxes/views/CountryList.tsx@@ -1,7 +1,7 @@import * as React from "react";+import useNavigator from "@hooks/useNavigator";import { configurationMenuUrl } from "../../configuration";-import useNavigator from "../../hooks/useNavigator";import { maybe } from "../../misc";import CountryListPage from "../components/CountryListPage";import { TypedFetchTaxes, TypedUpdateTaxSettings } from "../mutations";diff --git a/saleor/static/dashboard-next/taxes/views/CountryTaxes.tsx b/saleor/static/dashboard-next/taxes/views/CountryTaxes.tsxindex 230cc03193..a3f5a32789 100644--- a/saleor/static/dashboard-next/taxes/views/CountryTaxes.tsx+++ b/saleor/static/dashboard-next/taxes/views/CountryTaxes.tsx@@ -1,6 +1,6 @@import * as React from "react";-import useNavigator from "../../hooks/useNavigator";+import useNavigator from "@hooks/useNavigator";import { maybe } from "../../misc";import CountryTaxesPage from "../components/CountryTaxesPage";import { TypedCountryListQuery } from "../queries";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsCategories.tsx b/saleor/static/dashboard-next/translations/views/TranslationsCategories.tsxindex 32edd67605..e27ab83bb2 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsCategories.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsCategories.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { LanguageCodeEnum, TranslationInput } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsCollections.tsx b/saleor/static/dashboard-next/translations/views/TranslationsCollections.tsxindex e573d9f5ef..ac5729779e 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsCollections.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsCollections.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { LanguageCodeEnum, TranslationInput } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsEntities.tsx b/saleor/static/dashboard-next/translations/views/TranslationsEntities.tsxindex 161aaa8aa8..170cc5fa13 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsEntities.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsEntities.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import usePaginator, { createPaginationState } from "../../hooks/usePaginator";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import usePaginator, { createPaginationState } from "@hooks/usePaginator";+import useShop from "@hooks/useShop";import { maybe } from "../../misc";import { Pagination } from "../../types";import TranslationsEntitiesList from "../components/TranslationsEntitiesList";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsLanguageList.tsx b/saleor/static/dashboard-next/translations/views/TranslationsLanguageList.tsxindex b454f211bc..7fdfe39502 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsLanguageList.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsLanguageList.tsx@@ -1,7 +1,7 @@import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useShop from "@hooks/useShop";import { maybe } from "../../misc";import TranslationsLanguageListPage from "../components/TranslationsLanguageListPage";import { languageEntitiesUrl } from "../urls";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsPages.tsx b/saleor/static/dashboard-next/translations/views/TranslationsPages.tsxindex 7177a10f91..322cb3f1a4 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsPages.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsPages.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import {diff --git a/saleor/static/dashboard-next/translations/views/TranslationsProductTypes.tsx b/saleor/static/dashboard-next/translations/views/TranslationsProductTypes.tsxindex 2177005592..020b4b2407 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsProductTypes.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsProductTypes.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import {diff --git a/saleor/static/dashboard-next/translations/views/TranslationsProducts.tsx b/saleor/static/dashboard-next/translations/views/TranslationsProducts.tsxindex f193983775..a63c9e5b2f 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsProducts.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsProducts.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import { LanguageCodeEnum, TranslationInput } from "../../types/globalTypes";diff --git a/saleor/static/dashboard-next/translations/views/TranslationsSales.tsx b/saleor/static/dashboard-next/translations/views/TranslationsSales.tsxindex c08420ce34..e15a59319b 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsSales.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsSales.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import {diff --git a/saleor/static/dashboard-next/translations/views/TranslationsVouchers.tsx b/saleor/static/dashboard-next/translations/views/TranslationsVouchers.tsxindex b05919ea5c..7f37b331ad 100644--- a/saleor/static/dashboard-next/translations/views/TranslationsVouchers.tsx+++ b/saleor/static/dashboard-next/translations/views/TranslationsVouchers.tsx@@ -1,9 +1,9 @@import { stringify as stringifyQs } from "qs";import * as React from "react";-import useNavigator from "../../hooks/useNavigator";-import useNotifier from "../../hooks/useNotifier";-import useShop from "../../hooks/useShop";+import useNavigator from "@hooks/useNavigator";+import useNotifier from "@hooks/useNotifier";+import useShop from "@hooks/useShop";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";import {