Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add uniform variant
dominik-zeglen89ec6d5d4d83
diff --git a/saleor/static/dashboard-next/components/Grid/Grid.tsx b/saleor/static/dashboard-next/components/Grid/Grid.tsxindex 38060944af..7b6056e960 100644--- a/saleor/static/dashboard-next/components/Grid/Grid.tsx+++ b/saleor/static/dashboard-next/components/Grid/Grid.tsx@@ -7,7 +7,7 @@ import {import classNames from "classnames";import * as React from "react";-export type GridVariant = "default" | "inverted";+export type GridVariant = "default" | "inverted" | "uniform";export interface GridProps extends WithStyles<typeof styles> {children: React.ReactNodeArray | React.ReactNode;variant?: GridVariant;@@ -29,6 +29,9 @@ const styles = (theme: Theme) =>gridRowGap: theme.spacing.unit + "px",gridTemplateColumns: "1fr"}+ },+ uniform: {+ gridTemplateColumns: "1fr 1fr"}});@@ -38,7 +41,8 @@ export const Grid = withStyles(styles, { name: "Grid" })(className={classNames({[classes.root]: true,[classes.default]: variant === "default",- [classes.inverted]: variant === "inverted"+ [classes.inverted]: variant === "inverted",+ [classes.uniform]: variant === "uniform"})}>{children}