Skip to content

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

Slight style changes

dominik-zeglen58c611673b79
diff --git a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
index a20f592af8..e78b97f038 100644
--- a/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
+++ b/saleor/static/dashboard-next/components/ProductList/ProductList.tsx
@@ -99,16 +99,14 @@ export const ProductList = decorate<ProductListProps>(
</TableRow>
) : products !== null && products.length > 0 ? (
products.map(product => (
- <TableRow hover key={product.id}>
+ <TableRow
+ hover
+ key={product.id}
+ onClick={onRowClick(product.id)}
+ className={classes.link}
+ >
<TableCellAvatar thumbnail={product.thumbnailUrl} />
- <TableCell className={classes.textLeft}>
- <span
- onClick={onRowClick ? onRowClick(product.id) : undefined}
- className={onRowClick ? classes.link : ""}
- >
- {product.name}
- </span>
- </TableCell>
+ <TableCell className={classes.textLeft}>{product.name}</TableCell>
<TableCell>{product.productType.name}</TableCell>
<TableCell>
{product.availability &&
diff --git a/saleor/static/dashboard-next/products/components/ProductVariantPage/ProductVariantPage.tsx b/saleor/static/dashboard-next/products/components/ProductVariantPage/ProductVariantPage.tsx
index c2fb274ed1..f897bc88c4 100644
--- a/saleor/static/dashboard-next/products/components/ProductVariantPage/ProductVariantPage.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductVariantPage/ProductVariantPage.tsx
@@ -79,9 +79,6 @@ interface ProductVariantPageProps {
const decorate = withStyles(theme => ({
root: {
- "& input": {
- width: "100%"
- },
display: "grid",
gridGap: `${theme.spacing.unit * 2}px`,
gridTemplateColumns: "1fr 2.25fr",