Skip to content

Commit

Permalink
fixed grid system
Browse files Browse the repository at this point in the history
  • Loading branch information
Spiral-Memory committed May 8, 2024
1 parent e19d470 commit 74b4c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/Grid/GridItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import classes from './Grid.module.css';
const getClassNames = (breakPoints) =>
Object.keys(breakPoints)
.filter((key) => !!breakPoints[key])
.map((key) => classes[`ec-grid__item--${key}`])
.concat(classes['ec-grid__item '])
.map((key) => classes[`ec-grid__item--${key}-${breakPoints[key]}`])
.concat(classes['ec-grid__item'])
.join(' ');

export const GridItem = ({ xs, sm, md, lg, xl, ...props }) => (
Expand Down

0 comments on commit 74b4c10

Please sign in to comment.