Skip to content

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

Sort imports

Lukasz Szewczyk8669e1d6c4c8
diff --git a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
index c32547cefc..9046041389 100644
--- a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
@@ -5,6 +5,7 @@ import ListItemText from "@material-ui/core/ListItemText";
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import * as React from "react";
+
import CardTitle from "../../../components/CardTitle";
import DateFormatter from "../../../components/DateFormatter";
import Skeleton from "../../../components/Skeleton";
diff --git a/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx b/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx
index 9114f8bf49..918480cf83 100644
--- a/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx
@@ -4,6 +4,7 @@ import { IconProps } from "@material-ui/core/Icon";
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import * as React from "react";
+
import Skeleton from "../../../components/Skeleton";
import i18n from "../../../i18n";
diff --git a/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx b/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx
index 8b056f1643..322d5a515f 100644
--- a/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeHeader/HomeHeader.tsx
@@ -1,6 +1,7 @@
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import * as React from "react";
+
import Skeleton from "../../../components/Skeleton";
import i18n from "../../../i18n";
diff --git a/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx b/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx
index 8e4b0268ae..73d505949b 100644
--- a/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx
+++ b/saleor/static/dashboard-next/home/components/HomePage/HomePage.tsx
@@ -1,8 +1,8 @@
import { withStyles } from "@material-ui/core/styles";
-import * as React from "react";
-
import AttachMoney from "@material-ui/icons/AttachMoney";
import LocalShipping from "@material-ui/icons/LocalShipping";
+import * as React from "react";
+
import CardSpacer from "../../../components/CardSpacer";
import Container from "../../../components/Container";
import Money from "../../../components/Money";
diff --git a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
index 36f05170ea..5a3e844888 100644
--- a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
@@ -1,5 +1,13 @@
+import Card from "@material-ui/core/Card";
+import { withStyles } from "@material-ui/core/styles";
+import Table from "@material-ui/core/Table";
+import TableBody from "@material-ui/core/TableBody";
+import TableCell from "@material-ui/core/TableCell";
+import TableRow from "@material-ui/core/TableRow";
+import Typography from "@material-ui/core/Typography";
import * as classNames from "classnames";
import * as React from "react";
+
import CardTitle from "../../../components/CardTitle";
import Money from "../../../components/Money";
import Skeleton from "../../../components/Skeleton";
@@ -7,14 +15,6 @@ import TableCellAvatar from "../../../components/TableCellAvatar";
import i18n from "../../../i18n";
import { renderCollection } from "../../../misc";
-import Card from "@material-ui/core/Card";
-import { withStyles } from "@material-ui/core/styles";
-import Table from "@material-ui/core/Table";
-import TableBody from "@material-ui/core/TableBody";
-import TableCell from "@material-ui/core/TableCell";
-import TableRow from "@material-ui/core/TableRow";
-import Typography from "@material-ui/core/Typography";
-
interface MoneyType {
amount: number;
currency: string;
diff --git a/saleor/static/dashboard-next/home/fixtures.ts b/saleor/static/dashboard-next/home/fixtures.ts
index 823026ab9c..cfed1fadd9 100644
--- a/saleor/static/dashboard-next/home/fixtures.ts
+++ b/saleor/static/dashboard-next/home/fixtures.ts
@@ -49,13 +49,13 @@ export const shop: (placeholderImage: string) => HomePageProps = (
currency: "PLN"
}
},
-
notifications: {
orders: 12,
payments: 10,
problems: 69,
productsOut: 2
},
+ onRowClick: () => undefined,
topProducts: [
{
id: "1",
@@ -102,6 +102,5 @@ export const shop: (placeholderImage: string) => HomePageProps = (
variant: "Hardcover"
}
],
- userName: "John Smith",
- onRowClick: () => undefined
+ userName: "John Smith"
});