Skip to content

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

Remove dead code

dominik-zeglen079bf77ab6fe
diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
index e78b97f038..89ba740931 100644
--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
@@ -57,7 +57,7 @@ export const ProductList = decorate<ProductListProps>(
}) => (
<Table>
<TableHead>
- <TableRow hover>
+ <TableRow>
<TableCell />
<TableCell className={classes.textLeft}>
{i18n.t("Name", { context: "object" })}
@@ -68,7 +68,7 @@ export const ProductList = decorate<ProductListProps>(
</TableRow>
</TableHead>
<TableFooter>
- <TableRow hover>
+ <TableRow>
<TablePagination
colSpan={5}
hasNextPage={pageInfo && !disabled ? pageInfo.hasNextPage : false}
@@ -140,7 +140,7 @@ export const ProductList = decorate<ProductListProps>(
</TableRow>
))
) : (
- <TableRow hover>
+ <TableRow>
<TableCell colSpan={5}>{i18n.t("No products found")}</TableCell>
</TableRow>
)}
diff --git a/saleor/static/dashboard-next/products/components/ProductPrice/ProductPrice.tsx b/saleor/static/dashboard-next/products/components/ProductPrice/ProductPrice.tsx
index 10b03e4d78..e01db08450 100644
--- a/saleor/static/dashboard-next/products/components/ProductPrice/ProductPrice.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductPrice/ProductPrice.tsx
@@ -13,7 +13,6 @@ import i18n from "../../../i18n";
import Skeleton from "../../../components/Skeleton";
import { MoneyType } from "../..";
-
interface ProductPriceProps {
purchaseCost?: {
start: MoneyType;
@@ -42,7 +41,7 @@ const ProductPrice = decorate<ProductPriceProps>(
<PageHeader title={i18n.t("Pricing")} />
<Table className={classes.root}>
<TableBody>
- <TableRow hover>
+ <TableRow>
<TableCell>{i18n.t("Purchase cost")}</TableCell>
<TableCell className={classes.textRight}>
{purchaseCost ? (
diff --git a/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx b/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx
index 72ac428e8f..565bd4b617 100644
--- a/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductVariantNavigation/ProductVariantNavigation.tsx
@@ -90,7 +90,7 @@ const ProductVariantNavigation = decorate<ProductVariantNavigationProps>(
</TableRow>
))
) : (
- <TableRow hover>
+ <TableRow>
<TableCell>{i18n.t("This product has no variants")}</TableCell>
</TableRow>
)}
diff --git a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
index 2a8857c87c..7086fffa09 100644
--- a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx
@@ -93,7 +93,7 @@ export const ProductVariants = decorate<ProductVariantsProps>(
</CardContent>
<Table className={classes.denseTable}>
<TableHead>
- <TableRow hover>
+ <TableRow>
<TableCell className={classes.textLeft}>{i18n.t("Name")}</TableCell>
<TableCell>{i18n.t("Status")}</TableCell>
<TableCell>{i18n.t("SKU")}</TableCell>
@@ -155,7 +155,7 @@ export const ProductVariants = decorate<ProductVariantsProps>(
);
})
) : (
- <TableRow hover>
+ <TableRow>
<TableCell colSpan={2}>
{i18n.t("This product has no variants")}
</TableCell>