Skip to content

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

Improve code readability

dominik-zeglen44837ed35ade
diff --git a/saleor/static/dashboard-next/AppRoot.tsx b/saleor/static/dashboard-next/AppRoot.tsx
index f0147ac5cf..436bb3ec0d 100644
--- a/saleor/static/dashboard-next/AppRoot.tsx
+++ b/saleor/static/dashboard-next/AppRoot.tsx
@@ -376,7 +376,8 @@ export const AppRoot = decorate(
{user.email}
</Typography>
<ArrowDropdown
- className={classNames(classes.arrow, {
+ className={classNames({
+ [classes.arrow]: true,
[classes.rotate]: menuOpen
})}
/>
diff --git a/saleor/static/dashboard-next/products/components/ProductImageNavigation/ProductImageNavigation.tsx b/saleor/static/dashboard-next/products/components/ProductImageNavigation/ProductImageNavigation.tsx
index fa793a43a0..4bc6c1480d 100644
--- a/saleor/static/dashboard-next/products/components/ProductImageNavigation/ProductImageNavigation.tsx
+++ b/saleor/static/dashboard-next/products/components/ProductImageNavigation/ProductImageNavigation.tsx
@@ -60,7 +60,8 @@ const ProductImageNavigation = decorate<ProductImageNavigationProps>(
<div className={classes.root}>
{images.map(image => (
<div
- className={classNames(classes.imageContainer, {
+ className={classNames({
+ [classes.imageContainer]: true,
[classes.highlightedImageContainer]: image.id === highlighted
})}
onClick={onRowClick(image.id)}