Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix imports path
Krzysztof Bialoglowicze00fd7485397
diff --git a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsxindex 6985e5ec32..1875f6a5cd 100644--- a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx@@ -18,9 +18,9 @@ import Checkbox from "@saleor/components/Checkbox";import Skeleton from "@saleor/components/Skeleton";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { renderCollection } from "../../../misc";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";const styles = (theme: Theme) =>createStyles({diff --git a/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx b/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsxindex 245ad80914..e0d77304ad 100644--- a/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryListPage/CategoryListPage.tsx@@ -4,8 +4,8 @@ import React from "react";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import CategoryList from "../CategoryList";export interface CategoryTableProps extends PageListProps, ListActions {diff --git a/saleor/static/dashboard-next/categories/views/CategoryList.tsx b/saleor/static/dashboard-next/categories/views/CategoryList.tsxindex 28cfff3a76..21592e802d 100644--- a/saleor/static/dashboard-next/categories/views/CategoryList.tsx+++ b/saleor/static/dashboard-next/categories/views/CategoryList.tsx@@ -10,10 +10,9 @@ import useNavigator from "@saleor/hooks/useNavigator";import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";-import { PAGINATE_BY } from "../../config";-import i18n from "../../i18n";-import { getMutationState, maybe } from "../../misc";-import { Lists } from "../../types";+import i18n from "@saleor/i18n";+import { getMutationState, maybe } from "@saleor/misc";+import { Lists } from "@saleor/types";import { CategoryListPage } from "../components/CategoryListPage/CategoryListPage";import { TypedCategoryBulkDeleteMutation } from "../mutations";import { TypedRootCategoriesQuery } from "../queries";@@ -40,8 +39,10 @@ export const CategoryList: React.StatelessComponent<CategoryListProps> = ({const { updateListSettings, listSettings } = useListSettings(Lists.CATEGORY_LIST);-- const paginationState = createPaginationState(PAGINATE_BY, params);+ const paginationState = createPaginationState(+ listSettings.CATEGORY_LIST.rowNumber,+ params+ );return (<TypedRootCategoriesQuery displayLoader variables={paginationState}>{({ data, loading, refetch }) => {diff --git a/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx b/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsxindex 14b6f0260c..b067aad245 100644--- a/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx@@ -17,9 +17,9 @@ import Skeleton from "@saleor/components/Skeleton";import StatusLabel from "@saleor/components/StatusLabel";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { maybe, renderCollection } from "../../../misc";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { maybe, renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { CollectionList_collections_edges_node } from "../../types/CollectionList";const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx b/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsxindex d5580c66e8..b115569fb3 100644--- a/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionListPage/CollectionListPage.tsx@@ -4,8 +4,8 @@ import React from "react";import { Container } from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { CollectionList_collections_edges_node } from "../../types/CollectionList";import CollectionList from "../CollectionList/CollectionList";diff --git a/saleor/static/dashboard-next/collections/views/CollectionList.tsx b/saleor/static/dashboard-next/collections/views/CollectionList.tsxindex 7f34a38bf2..e1aff0f8e4 100644--- a/saleor/static/dashboard-next/collections/views/CollectionList.tsx+++ b/saleor/static/dashboard-next/collections/views/CollectionList.tsx@@ -12,9 +12,9 @@ import useNotifier from "@saleor/hooks/useNotifier";import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";-import i18n from "../../i18n";-import { getMutationState, maybe } from "../../misc";-import { Lists } from "../../types";+import i18n from "@saleor/i18n";+import { getMutationState, maybe } from "@saleor/misc";+import { Lists } from "@saleor/types";import CollectionListPage from "../components/CollectionListPage/CollectionListPage";import {TypedCollectionBulkDelete,@@ -44,7 +44,6 @@ export const CollectionList: React.StatelessComponent<CollectionListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.COLLECTION_LIST);diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsxindex d05f320702..005d7ae4ab 100644--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx@@ -12,10 +12,10 @@ import TableRow from "@material-ui/core/TableRow";import React from "react";import TableCellAvatar from "@saleor/components/TableCellAvatar";+import i18n from "@saleor/i18n";+import { maybe, renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { CategoryDetails_category_products_edges_node } from "../../categories/types/CategoryDetails";-import i18n from "../../i18n";-import { maybe, renderCollection } from "../../misc";-import { ListActions, ListProps } from "../../types";import Checkbox from "../Checkbox";import Money from "../Money";import Skeleton from "../Skeleton";diff --git a/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx b/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsxindex 7755d36cbf..528ede82ce 100644--- a/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx@@ -16,9 +16,9 @@ import Checkbox from "@saleor/components/Checkbox";import Skeleton from "@saleor/components/Skeleton";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { getUserName, maybe, renderCollection } from "../../../misc";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { getUserName, maybe, renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { ListCustomers_customers_edges_node } from "../../types/ListCustomers";const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx b/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsxindex 74e5aa6f3f..e39dad20c6 100644--- a/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerListPage/CustomerListPage.tsx@@ -4,8 +4,8 @@ import React from "react";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { ListCustomers_customers_edges_node } from "../../types/ListCustomers";import CustomerList from "../CustomerList/CustomerList";diff --git a/saleor/static/dashboard-next/customers/views/CustomerList.tsx b/saleor/static/dashboard-next/customers/views/CustomerList.tsxindex 91b0ea0e00..a6c85e1451 100644--- a/saleor/static/dashboard-next/customers/views/CustomerList.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerList.tsx@@ -38,7 +38,6 @@ export const CustomerList: React.StatelessComponent<CustomerListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.CUSTOMER_LIST);diff --git a/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx b/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsxindex dcfdc126d6..bf0eca3951 100644--- a/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx+++ b/saleor/static/dashboard-next/discounts/components/SaleListPage/SaleListPage.tsx@@ -4,8 +4,8 @@ import React from "react";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { SaleList_sales_edges_node } from "../../types/SaleList";import SaleList from "../SaleList";diff --git a/saleor/static/dashboard-next/discounts/views/SaleList.tsx b/saleor/static/dashboard-next/discounts/views/SaleList.tsxindex 456f8737c2..a5b06a39de 100644--- a/saleor/static/dashboard-next/discounts/views/SaleList.tsx+++ b/saleor/static/dashboard-next/discounts/views/SaleList.tsx@@ -41,7 +41,6 @@ export const SaleList: React.StatelessComponent<SaleListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.SALES_LIST);diff --git a/saleor/static/dashboard-next/discounts/views/VoucherList.tsx b/saleor/static/dashboard-next/discounts/views/VoucherList.tsxindex e78ddca5a1..62497cacf3 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherList.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherList.tsx@@ -41,7 +41,6 @@ export const VoucherList: React.StatelessComponent<VoucherListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.VOUCHER_LIST);diff --git a/saleor/static/dashboard-next/navigation/components/MenuList/MenuList.tsx b/saleor/static/dashboard-next/navigation/components/MenuList/MenuList.tsxindex dd9248ed9e..8f609fb800 100644--- a/saleor/static/dashboard-next/navigation/components/MenuList/MenuList.tsx+++ b/saleor/static/dashboard-next/navigation/components/MenuList/MenuList.tsx@@ -18,9 +18,9 @@ import IconButtonTableCell from "@saleor/components/IconButtonTableCell";import Skeleton from "@saleor/components/Skeleton";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { maybe, renderCollection } from "../../../misc";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { maybe, renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { MenuList_menus_edges_node } from "../../types/MenuList";export interface MenuListProps extends ListProps, ListActions {diff --git a/saleor/static/dashboard-next/navigation/components/MenuListPage/MenuListPage.tsx b/saleor/static/dashboard-next/navigation/components/MenuListPage/MenuListPage.tsxindex 8e6b98d56e..04f0f59265 100644--- a/saleor/static/dashboard-next/navigation/components/MenuListPage/MenuListPage.tsx+++ b/saleor/static/dashboard-next/navigation/components/MenuListPage/MenuListPage.tsx@@ -5,8 +5,8 @@ import React from "react";import AppHeader from "@saleor/components/AppHeader";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { MenuList_menus_edges_node } from "../../types/MenuList";import MenuList from "../MenuList";diff --git a/saleor/static/dashboard-next/navigation/views/MenuList.tsx b/saleor/static/dashboard-next/navigation/views/MenuList.tsxindex d30d562d66..12530df6b6 100644--- a/saleor/static/dashboard-next/navigation/views/MenuList.tsx+++ b/saleor/static/dashboard-next/navigation/views/MenuList.tsx@@ -3,6 +3,7 @@ import DialogContentText from "@material-ui/core/DialogContentText";import React from "react";import ActionDialog from "@saleor/components/ActionDialog";+import { configurationMenuUrl } from "@saleor/configuration";import useBulkActions from "@saleor/hooks/useBulkActions";import useListSettings from "@saleor/hooks/useListSettings";import useNavigator from "@saleor/hooks/useNavigator";@@ -10,8 +11,6 @@ import useNotifier from "@saleor/hooks/useNotifier";import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";--import { configurationMenuUrl } from "@saleor/configuration";import i18n from "@saleor/i18n";import { getMutationState, maybe } from "@saleor/misc";import { Lists } from "@saleor/types";@@ -38,7 +37,6 @@ const MenuList: React.FC<MenuListProps> = ({ params }) => {const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.NAVIGATION_LIST);diff --git a/saleor/static/dashboard-next/orders/components/OrderDraftList/OrderDraftList.tsx b/saleor/static/dashboard-next/orders/components/OrderDraftList/OrderDraftList.tsxindex 77cf2f7b44..2daab269fc 100644--- a/saleor/static/dashboard-next/orders/components/OrderDraftList/OrderDraftList.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderDraftList/OrderDraftList.tsx@@ -17,14 +17,14 @@ import Money from "@saleor/components/Money";import Skeleton from "@saleor/components/Skeleton";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";+import i18n from "@saleor/i18n";import {maybe,renderCollection,transformOrderStatus,transformPaymentStatus-} from "../../../misc";-import { ListActions, ListProps } from "../../../types";+} from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { OrderDraftList_draftOrders_edges_node } from "../../types/OrderDraftList";const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx b/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsxindex 09b7063c2a..a172986a6e 100644--- a/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderDraftListPage/OrderDraftListPage.tsx@@ -5,8 +5,8 @@ import React from "react";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { OrderDraftList_draftOrders_edges_node } from "../../types/OrderDraftList";import OrderDraftList from "../OrderDraftList";diff --git a/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx b/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsxindex 4334c6ed54..bcc15cadc8 100644--- a/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx+++ b/saleor/static/dashboard-next/orders/components/OrderList/OrderList.tsx@@ -18,14 +18,14 @@ import Skeleton from "@saleor/components/Skeleton";import StatusLabel from "@saleor/components/StatusLabel";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";+import i18n from "@saleor/i18n";import {maybe,renderCollection,transformOrderStatus,transformPaymentStatus-} from "../../../misc";-import { ListActions, ListProps } from "../../../types";+} from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { OrderList_orders_edges_node } from "../../types/OrderList";const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx b/saleor/static/dashboard-next/orders/views/OrderDraftList.tsxindex d09fd3c0c1..9ac874fe75 100644--- a/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderDraftList.tsx@@ -41,7 +41,6 @@ export const OrderDraftList: React.StatelessComponent<OrderDraftListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.DRAFT_LIST);diff --git a/saleor/static/dashboard-next/orders/views/OrderList/OrderList.tsx b/saleor/static/dashboard-next/orders/views/OrderList/OrderList.tsxindex 8a27ad94e7..4b7e1449f2 100644--- a/saleor/static/dashboard-next/orders/views/OrderList/OrderList.tsx+++ b/saleor/static/dashboard-next/orders/views/OrderList/OrderList.tsx@@ -59,7 +59,6 @@ export const OrderList: React.StatelessComponent<OrderListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.ORDER_LIST);diff --git a/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx b/saleor/static/dashboard-next/pages/components/PageList/PageList.tsxindex e4bcb3a508..0df72c9552 100644--- a/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx+++ b/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx@@ -17,9 +17,9 @@ import Skeleton from "@saleor/components/Skeleton";import StatusLabel from "@saleor/components/StatusLabel";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { maybe, renderCollection } from "../../../misc";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { maybe, renderCollection } from "@saleor/misc";+import { ListActions, ListProps } from "@saleor/types";import { PageList_pages_edges_node } from "../../types/PageList";export interface PageListProps extends ListProps, ListActions {diff --git a/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx b/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsxindex a0c0ab8035..ffd27cd242 100644--- a/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx+++ b/saleor/static/dashboard-next/pages/components/PageListPage/PageListPage.tsx@@ -5,8 +5,8 @@ import React from "react";import AppHeader from "@saleor/components/AppHeader";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";import { PageList_pages_edges_node } from "../../types/PageList";import PageList from "../PageList/PageList";diff --git a/saleor/static/dashboard-next/pages/views/PageList.tsx b/saleor/static/dashboard-next/pages/views/PageList.tsxindex 33bd52d163..39004dcbfc 100644--- a/saleor/static/dashboard-next/pages/views/PageList.tsx+++ b/saleor/static/dashboard-next/pages/views/PageList.tsx@@ -5,6 +5,7 @@ import DeleteIcon from "@material-ui/icons/Delete";import React from "react";import ActionDialog from "@saleor/components/ActionDialog";+import { configurationMenuUrl } from "@saleor/configuration";import useBulkActions from "@saleor/hooks/useBulkActions";import useListSettings from "@saleor/hooks/useListSettings";import useNavigator from "@saleor/hooks/useNavigator";@@ -12,8 +13,6 @@ import useNotifier from "@saleor/hooks/useNotifier";import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";--import { configurationMenuUrl } from "@saleor/configuration";import i18n from "@saleor/i18n";import { getMutationState, maybe } from "@saleor/misc";import { Lists } from "@saleor/types";@@ -46,7 +45,6 @@ export const PageList: React.StatelessComponent<PageListProps> = ({const { updateListSettings, listSettings } = useListSettings(Lists.PAGES_LIST);-const paginationState = createPaginationState(listSettings.PAGES_LIST.rowNumber,paramsdiff --git a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsxindex 4e8501f992..ca53623e9c 100644--- a/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx+++ b/saleor/static/dashboard-next/products/components/ProductListCard/ProductListCard.tsx@@ -6,14 +6,14 @@ import React from "react";import Container from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";import ProductList from "@saleor/components/ProductList";-import { CategoryDetails_category_products_edges_node } from "../../../categories/types/CategoryDetails";-import i18n from "../../../i18n";+import i18n from "@saleor/i18n";import {FilterPageProps,ListActions,ListSettings,PageListProps-} from "../../../types";+} from "@saleor/types";+import { CategoryDetails_category_products_edges_node } from "../../../categories/types/CategoryDetails";import { ProductListUrlFilters } from "../../urls";import ProductListFilter from "../ProductListFilter";diff --git a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsxindex cf44a1042a..9482dea9c2 100644--- a/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx+++ b/saleor/static/dashboard-next/products/views/ProductList/ProductList.tsx@@ -18,9 +18,9 @@ import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";import useShop from "@saleor/hooks/useShop";-import i18n from "../../../i18n";-import { getMutationState, maybe } from "../../../misc";-import { Lists } from "../../../types";+import i18n from "@saleor/i18n";+import { getMutationState, maybe } from "@saleor/misc";+import { Lists } from "@saleor/types";import ProductListCard from "../../components/ProductListCard";import {TypedProductBulkDeleteMutation,@@ -63,7 +63,6 @@ export const ProductList: React.StatelessComponent<ProductListProps> = ({const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.PRODUCT_LIST);diff --git a/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx b/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsxindex 155219e6d4..5fbe7fc668 100644--- a/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx+++ b/saleor/static/dashboard-next/shipping/components/ShippingZonesList/ShippingZonesList.tsx@@ -20,10 +20,10 @@ import Checkbox from "@saleor/components/Checkbox";import Skeleton from "@saleor/components/Skeleton";import TableHead from "@saleor/components/TableHead";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";-import { maybe, renderCollection } from "../../../misc";-import { ICONBUTTON_SIZE } from "../../../theme";-import { ListActions, ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { maybe, renderCollection } from "@saleor/misc";+import { ICONBUTTON_SIZE } from "@saleor/theme";+import { ListActions, ListProps } from "@saleor/types";import { ShippingZoneFragment } from "../../types/ShippingZoneFragment";export interface ShippingZonesListProps extends ListProps, ListActions {diff --git a/saleor/static/dashboard-next/shipping/components/ShippingZonesListPage/ShippingZonesListPage.tsx b/saleor/static/dashboard-next/shipping/components/ShippingZonesListPage/ShippingZonesListPage.tsxindex f63fddfe14..b9aa74b37d 100644--- a/saleor/static/dashboard-next/shipping/components/ShippingZonesListPage/ShippingZonesListPage.tsx+++ b/saleor/static/dashboard-next/shipping/components/ShippingZonesListPage/ShippingZonesListPage.tsx@@ -4,9 +4,9 @@ import AppHeader from "@saleor/components/AppHeader";import Container from "@saleor/components/Container";import Grid from "@saleor/components/Grid";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListActions, PageListProps } from "../../../types";-import { WeightUnitsEnum } from "../../../types/globalTypes";+import i18n from "@saleor/i18n";+import { ListActions, PageListProps } from "@saleor/types";+import { WeightUnitsEnum } from "@saleor/types/globalTypes";import { ShippingZoneFragment } from "../../types/ShippingZoneFragment";import ShippingWeightUnitForm from "../ShippingWeightUnitForm";import ShippingZonesList from "../ShippingZonesList";diff --git a/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx b/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsxindex 7ec41d4e07..1bab775bfd 100644--- a/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx+++ b/saleor/static/dashboard-next/shipping/views/ShippingZonesList.tsx@@ -4,6 +4,7 @@ import DeleteIcon from "@material-ui/icons/Delete";import React from "react";import ActionDialog from "@saleor/components/ActionDialog";+import { configurationMenuUrl } from "@saleor/configuration";import useBulkActions from "@saleor/hooks/useBulkActions";import useListSettings from "@saleor/hooks/useListSettings";import useNavigator from "@saleor/hooks/useNavigator";@@ -12,8 +13,6 @@ import usePaginator, {createPaginationState} from "@saleor/hooks/usePaginator";import useShop from "@saleor/hooks/useShop";--import { configurationMenuUrl } from "@saleor/configuration";import i18n from "@saleor/i18n";import { getMutationState, maybe } from "@saleor/misc";import { Lists } from "@saleor/types";@@ -48,7 +47,6 @@ export const ShippingZonesList: React.StatelessComponent<const { isSelected, listElements, reset, toggle, toggleAll } = useBulkActions(params.ids);-const { updateListSettings, listSettings } = useListSettings(Lists.SHIPPING_METHODS_LIST);diff --git a/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx b/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsxindex 280c8e3bbe..614be9da88 100644--- a/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx@@ -17,14 +17,14 @@ import React from "react";import Skeleton from "@saleor/components/Skeleton";import TablePagination from "@saleor/components/TablePagination";-import i18n from "../../../i18n";+import i18n from "@saleor/i18n";import {getUserInitials,getUserName,maybe,renderCollection-} from "../../../misc";-import { ListProps } from "../../../types";+} from "@saleor/misc";+import { ListProps } from "@saleor/types";import { StaffList_staffUsers_edges_node } from "../../types/StaffList";const styles = (theme: Theme) =>diff --git a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsxindex 9aabdf9490..73ebd20e01 100644--- a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx@@ -5,8 +5,8 @@ import React from "react";import AppHeader from "@saleor/components/AppHeader";import { Container } from "@saleor/components/Container";import PageHeader from "@saleor/components/PageHeader";-import i18n from "../../../i18n";-import { ListProps } from "../../../types";+import i18n from "@saleor/i18n";+import { ListProps } from "@saleor/types";import { StaffList_staffUsers_edges_node } from "../../types/StaffList";import StaffList from "../StaffList/StaffList";