Skip to content

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

Drop asterisk import

dominik-zeglenc0ed43359a0f
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx b/saleor/static/dashboard-next/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx
index 62b8eb995d..bd40e2c519 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeBulkDeleteDialog/AttributeBulkDeleteDialog.tsx
@@ -1,5 +1,5 @@
import DialogContentText from "@material-ui/core/DialogContentText";
-import * as React from "react";
+import React from "react";
import ActionDialog from "@saleor/components/ActionDialog";
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx b/saleor/static/dashboard-next/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx
index ac5c27a922..b6e577d88e 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeDeleteDialog/AttributeDeleteDialog.tsx
@@ -1,5 +1,5 @@
import DialogContentText from "@material-ui/core/DialogContentText";
-import * as React from "react";
+import React from "react";
import ActionDialog from "@saleor/components/ActionDialog";
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeDetails/AttributeDetails.tsx b/saleor/static/dashboard-next/attributes/components/AttributeDetails/AttributeDetails.tsx
index adc1c525ae..7f49651240 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeDetails/AttributeDetails.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeDetails/AttributeDetails.tsx
@@ -1,7 +1,7 @@
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import TextField from "@material-ui/core/TextField";
-import * as React from "react";
+import React from "react";
import CardTitle from "@saleor/components/CardTitle";
import FormSpacer from "@saleor/components/FormSpacer";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeList/AttributeList.tsx b/saleor/static/dashboard-next/attributes/components/AttributeList/AttributeList.tsx
index ccc7872291..b0f01f25e1 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeList/AttributeList.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeList/AttributeList.tsx
@@ -5,7 +5,7 @@ import TableCell from "@material-ui/core/TableCell";
import TableFooter from "@material-ui/core/TableFooter";
import TableRow from "@material-ui/core/TableRow";
import makeStyles from "@material-ui/styles/makeStyles";
-import * as React from "react";
+import React from "react";
import Checkbox from "@saleor/components/Checkbox";
import Skeleton from "@saleor/components/Skeleton";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeListPage/AttributeListPage.tsx b/saleor/static/dashboard-next/attributes/components/AttributeListPage/AttributeListPage.tsx
index e7d6839475..4daa735281 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeListPage/AttributeListPage.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeListPage/AttributeListPage.tsx
@@ -1,7 +1,7 @@
import Button from "@material-ui/core/Button";
import Card from "@material-ui/core/Card";
import AddIcon from "@material-ui/icons/Add";
-import * as React from "react";
+import React from "react";
import Container from "../../../components/Container";
import PageHeader from "../../../components/PageHeader";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx b/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
index f1bbc75e49..0396b78e5f 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributePage/AttributePage.tsx
@@ -1,4 +1,4 @@
-import * as React from "react";
+import React from "react";
import AppHeader from "@saleor/components/AppHeader";
import CardSpacer from "@saleor/components/CardSpacer";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeProperties/AttributeProperties.tsx b/saleor/static/dashboard-next/attributes/components/AttributeProperties/AttributeProperties.tsx
index f9a83460d7..ab27bc82e6 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeProperties/AttributeProperties.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeProperties/AttributeProperties.tsx
@@ -1,7 +1,7 @@
import Card from "@material-ui/core/Card";
import CardContent from "@material-ui/core/CardContent";
import Typography from "@material-ui/core/Typography";
-import * as React from "react";
+import React from "react";
import CardSpacer from "../../../components/CardSpacer";
import CardTitle from "../../../components/CardTitle";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx b/saleor/static/dashboard-next/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx
index 295d7472bc..1fcca2ce6c 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeValueDeleteDialog/AttributeValueDeleteDialog.tsx
@@ -1,5 +1,5 @@
import DialogContentText from "@material-ui/core/DialogContentText";
-import * as React from "react";
+import React from "react";
import ActionDialog from "@saleor/components/ActionDialog";
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeValueEditDialog/AttributeValueEditDialog.tsx b/saleor/static/dashboard-next/attributes/components/AttributeValueEditDialog/AttributeValueEditDialog.tsx
index 8f86efbb9f..53b8fcde2f 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeValueEditDialog/AttributeValueEditDialog.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeValueEditDialog/AttributeValueEditDialog.tsx
@@ -4,7 +4,7 @@ import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/DialogContent";
import DialogTitle from "@material-ui/core/DialogTitle";
import TextField from "@material-ui/core/TextField";
-import * as React from "react";
+import React from "react";
import ConfirmButton, {
ConfirmButtonTransitionState
diff --git a/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx b/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx
index 12e06e3085..397bf70820 100644
--- a/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx
+++ b/saleor/static/dashboard-next/attributes/components/AttributeValues/AttributeValues.tsx
@@ -9,7 +9,7 @@ import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";
import DeleteIcon from "@material-ui/icons/Delete";
import makeStyles from "@material-ui/styles/makeStyles";
-import * as React from "react";
+import React from "react";
import CardTitle from "../../../components/CardTitle";
import Skeleton from "../../../components/Skeleton";
diff --git a/saleor/static/dashboard-next/attributes/index.tsx b/saleor/static/dashboard-next/attributes/index.tsx
index 03798e10ba..8c851c57e4 100644
--- a/saleor/static/dashboard-next/attributes/index.tsx
+++ b/saleor/static/dashboard-next/attributes/index.tsx
@@ -1,5 +1,5 @@
import { parse as parseQs } from "qs";
-import * as React from "react";
+import React from "react";
import { Route, RouteComponentProps, Switch } from "react-router-dom";
import { WindowTitle } from "../components/WindowTitle";
diff --git a/saleor/static/dashboard-next/attributes/views/AttributeCreate/AttributeCreate.tsx b/saleor/static/dashboard-next/attributes/views/AttributeCreate/AttributeCreate.tsx
index 808b96c107..e36b739dae 100644
--- a/saleor/static/dashboard-next/attributes/views/AttributeCreate/AttributeCreate.tsx
+++ b/saleor/static/dashboard-next/attributes/views/AttributeCreate/AttributeCreate.tsx
@@ -1,4 +1,4 @@
-import * as React from "react";
+import React from "react";
import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
diff --git a/saleor/static/dashboard-next/attributes/views/AttributeDetails/AttributeDetails.tsx b/saleor/static/dashboard-next/attributes/views/AttributeDetails/AttributeDetails.tsx
index a54bfbbcdc..6dcf494ff4 100644
--- a/saleor/static/dashboard-next/attributes/views/AttributeDetails/AttributeDetails.tsx
+++ b/saleor/static/dashboard-next/attributes/views/AttributeDetails/AttributeDetails.tsx
@@ -1,4 +1,4 @@
-import * as React from "react";
+import React from "react";
import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
diff --git a/saleor/static/dashboard-next/attributes/views/AttributeList/AttributeList.tsx b/saleor/static/dashboard-next/attributes/views/AttributeList/AttributeList.tsx
index e105cd38fe..6e311cfab2 100644
--- a/saleor/static/dashboard-next/attributes/views/AttributeList/AttributeList.tsx
+++ b/saleor/static/dashboard-next/attributes/views/AttributeList/AttributeList.tsx
@@ -1,6 +1,6 @@
import IconButton from "@material-ui/core/IconButton";
import DeleteIcon from "@material-ui/icons/Delete";
-import * as React from "react";
+import React from "react";
import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeBulkDeleteDialog.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeBulkDeleteDialog.tsx
index 8973192aa7..0a09020eb3 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeBulkDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeBulkDeleteDialog.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import AttributeBulkDeleteDialog, {
AttributeBulkDeleteDialogProps
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDeleteDialog.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDeleteDialog.tsx
index 44c3724986..23df15a807 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeDeleteDialog.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import AttributeDeleteDialog, {
AttributeDeleteDialogProps
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeListPage.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeListPage.tsx
index 636af6e472..e757661f3c 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeListPage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeListPage.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import AttributeListPage, {
AttributeListPageProps
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributePage.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributePage.tsx
index 581c4e813e..d9ba660ef7 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributePage.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributePage.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import { attribute } from "@saleor/attributes/fixtures";
import { formError } from "@saleor/storybook/misc";
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueDeleteDialog.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueDeleteDialog.tsx
index b6da18df77..ef23a067e5 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueDeleteDialog.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueDeleteDialog.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import AttributeValueDeleteDialog, {
AttributeValueDeleteDialogProps
diff --git a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx
index b92906d018..0878a62466 100644
--- a/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx
+++ b/saleor/static/dashboard-next/storybook/stories/attributes/AttributeValueEditDialog.tsx
@@ -1,5 +1,5 @@
import { storiesOf } from "@storybook/react";
-import * as React from "react";
+import React from "react";
import { attributes } from "@saleor/attributes/fixtures";
import { formError } from "@saleor/storybook/misc";