Skip to content

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

Sort imports and object keys

dominik-zeglenea81813989e2
diff --git a/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx b/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
index 420a0dbb2e..0bd72b511e 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryDetails/index.tsx
@@ -2,7 +2,7 @@ import DialogContentText from "@material-ui/core/DialogContentText";
import * as React from "react";
import { Route } from "react-router-dom";
-import { categoryListUrl, categoryUrl, categoryAddUrl } from "../..";
+import { categoryAddUrl, categoryListUrl, categoryUrl } from "../..";
import ActionDialog from "../../../components/ActionDialog";
import Messages from "../../../components/messages";
import Navigator from "../../../components/Navigator";
@@ -12,7 +12,7 @@ import {
createPaginationState,
maybe
} from "../../../misc";
-import { productUrl, productAddUrl } from "../../../products";
+import { productAddUrl, productUrl } from "../../../products";
import { CategoryUpdatePage } from "../../components/CategoryUpdatePage/CategoryUpdatePage";
import {
TypedCategoryDeleteMutation,
diff --git a/saleor/static/dashboard-next/components/Tab/Tab.tsx b/saleor/static/dashboard-next/components/Tab/Tab.tsx
index c9b008b92f..714c2d5a2c 100644
--- a/saleor/static/dashboard-next/components/Tab/Tab.tsx
+++ b/saleor/static/dashboard-next/components/Tab/Tab.tsx
@@ -1,7 +1,7 @@
-import * as React from "react";
import { withStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import * as classNames from "classnames";
+import * as React from "react";
interface TabProps {
isActive: boolean;
@@ -15,18 +15,18 @@ const decorate = withStyles(theme => ({
"&$active": {
borderBottomColor: theme.palette.primary.main
},
+ "&:focus": {
+ color: "#5AB378"
+ },
+ "&:hover": {
+ color: "#5AB378"
+ },
borderBottom: "1px solid transparent",
+ cursor: "pointer",
display: "inline-block" as "inline-block",
- minWidth: 40,
fontWeight: theme.typography.fontWeightRegular,
marginRight: theme.spacing.unit * 4,
- cursor: "pointer",
- "&:hover": {
- color: "#5AB378"
- },
- "&:focus": {
- color: "#5AB378"
- }
+ minWidth: 40
}
}));