Skip to content

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

Add className prop

dominik-zeglen87ccbfff578b
diff --git a/saleor/static/dashboard-next/components/Grid/Grid.tsx b/saleor/static/dashboard-next/components/Grid/Grid.tsx
index 7b6056e960..b5cc6664c0 100644
--- a/saleor/static/dashboard-next/components/Grid/Grid.tsx
+++ b/saleor/static/dashboard-next/components/Grid/Grid.tsx
@@ -10,6 +10,7 @@ import * as React from "react";
export type GridVariant = "default" | "inverted" | "uniform";
export interface GridProps extends WithStyles<typeof styles> {
children: React.ReactNodeArray | React.ReactNode;
+ className?: string;
variant?: GridVariant;
}
@@ -36,10 +37,9 @@ const styles = (theme: Theme) =>
});
export const Grid = withStyles(styles, { name: "Grid" })(
- ({ children, classes, variant }: GridProps) => (
+ ({ className, children, classes, variant }: GridProps) => (
<div
- className={classNames({
- [classes.root]: true,
+ className={classNames(className, classes.root, {
[classes.default]: variant === "default",
[classes.inverted]: variant === "inverted",
[classes.uniform]: variant === "uniform"