Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Sort imports

dominik-zeglenafb524ceb697
diff --git a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx
index e71591fb2d..042af94875 100644
--- a/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx
+++ b/saleor/static/dashboard-next/discounts/components/DiscountCollections/DiscountCollections.tsx
@@ -18,13 +18,13 @@ import * as React from "react";
import CardTitle from "../../../components/CardTitle";
import Skeleton from "../../../components/Skeleton";
+import TableHead from "../../../components/TableHead";
import TablePagination from "../../../components/TablePagination";
import i18n from "../../../i18n";
import { maybe, renderCollection } from "../../../misc";
import { ListActions, ListProps } from "../../../types";
import { SaleDetails_sale } from "../../types/SaleDetails";
import { VoucherDetails_voucher } from "../../types/VoucherDetails";
-import TableHead from "../../../components/TableHead";
export interface DiscountCollectionsProps extends ListProps, ListActions {
discount: SaleDetails_sale | VoucherDetails_voucher;
diff --git a/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx b/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx
index f72770106c..7a99cbf0ab 100644
--- a/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx
+++ b/saleor/static/dashboard-next/discounts/views/SaleCreate.tsx
@@ -54,7 +54,7 @@ export const SaleDetails: React.StatelessComponent = () => (
errors={maybe(
() => saleCreateOpts.data.saleCreate.errors
)}
- onBack={() => navigate(saleListUrl)}
+ onBack={() => navigate(saleListUrl())}
onSubmit={formData =>
saleCreate({
variables: {
diff --git a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx
index 0e30cb7a8c..3b017df6de 100644
--- a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx
+++ b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx
@@ -60,7 +60,7 @@ export const VoucherDetails: React.StatelessComponent = () => (
errors={maybe(
() => voucherCreateOpts.data.voucherCreate.errors
)}
- onBack={() => navigate(voucherListUrl)}
+ onBack={() => navigate(voucherListUrl())}
onSubmit={formData =>
voucherCreate({
variables: {
diff --git a/saleor/static/dashboard-next/pages/views/PageDetails.tsx b/saleor/static/dashboard-next/pages/views/PageDetails.tsx
index 9011bdbe99..73380a3d66 100644
--- a/saleor/static/dashboard-next/pages/views/PageDetails.tsx
+++ b/saleor/static/dashboard-next/pages/views/PageDetails.tsx
@@ -54,7 +54,7 @@ export const PageDetails: React.StatelessComponent<PageDetailsProps> = ({
context: "notification"
})
});
- navigate(pageListUrl);
+ navigate(pageListUrl());
}
};
return (