Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Ensure selected state
dominik-zeglen894cbbb32b73
diff --git a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsxindex d94865c768..83e6d4c771 100644--- a/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx+++ b/saleor/static/dashboard-next/categories/components/CategoryList/CategoryList.tsx@@ -116,6 +116,7 @@ const CategoryList = withStyles(styles, { name: "CategoryList" })(hover={!!category}onClick={category ? onRowClick(category.id) : undefined}key={category ? category.id : "skeleton"}+ selected={isSelected}><TableCell padding="checkbox"><Checkboxdiff --git a/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx b/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsxindex 6fa98cea70..62070e01de 100644--- a/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionList/CollectionList.tsx@@ -95,6 +95,7 @@ const CollectionList = withStyles(styles, { name: "CollectionList" })(hover={!!collection}onClick={collection ? onRowClick(collection.id) : undefined}key={collection ? collection.id : "skeleton"}+ selected={isSelected}><TableCell padding="checkbox"><Checkboxdiff --git a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsxindex ba4d14fb0a..f1faed696a 100644--- a/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx+++ b/saleor/static/dashboard-next/collections/components/CollectionProducts/CollectionProducts.tsx@@ -124,6 +124,7 @@ const CollectionProducts = withStyles(styles, { name: "CollectionProducts" })(hover={!!product}onClick={!!product ? onRowClick(product.id) : undefined}key={product ? product.id : "skeleton"}+ selected={isSelected}><TableCell padding="checkbox"><Checkboxdiff --git a/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx b/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsxindex 02790f2c65..76d12393dc 100644--- a/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx+++ b/saleor/static/dashboard-next/customers/components/CustomerList/CustomerList.tsx@@ -89,6 +89,8 @@ const CustomerList = withStyles(styles, { name: "CustomerList" })(className={!!customer ? classes.tableRow : undefined}hover={!!customer}key={customer ? customer.id : "skeleton"}+ selected={isSelected}+ onClick={customer ? onRowClick(customer.id) : undefined}><TableCell padding="checkbox"><Checkbox@@ -101,11 +103,7 @@ const CustomerList = withStyles(styles, { name: "CustomerList" })(}}/></TableCell>- <TableCell- onClick={customer ? onRowClick(customer.id) : undefined}- >- {getUserName(customer)}- </TableCell>+ <TableCell>{getUserName(customer)}</TableCell><TableCell>{maybe<React.ReactNode>(() => customer.email, <Skeleton />)}</TableCell>diff --git a/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx b/saleor/static/dashboard-next/pages/components/PageList/PageList.tsxindex a0360dfefe..f71341e56a 100644--- a/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx+++ b/saleor/static/dashboard-next/pages/components/PageList/PageList.tsx@@ -81,6 +81,7 @@ const PageList = withStyles(styles, { name: "PageList" })(className={!!page ? classes.link : undefined}onClick={page ? onRowClick(page.id) : undefined}key={page ? page.id : "skeleton"}+ selected={isSelected}><TableCell padding="checkbox"><Checkboxdiff --git a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsxindex 500f08596c..4173e2ed76 100644--- a/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx+++ b/saleor/static/dashboard-next/products/components/ProductVariants/ProductVariants.tsx@@ -14,7 +14,6 @@ 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";@@ -116,6 +115,7 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(hover={!!variant}onClick={onRowClick(variant.id)}key={variant ? variant.id : "skeleton"}+ className={classes.link}><TableCell padding="checkbox"><Checkbox@@ -128,9 +128,7 @@ export const ProductVariants = withStyles(styles, { name: "ProductVariants" })(}}/></TableCell>- <TableCell- className={classNames(classes.textLeft, classes.link)}- >+ <TableCell className={classes.textLeft}>{variant ? variant.name || variant.sku : <Skeleton />}</TableCell><TableCell>