Skip to content

Commit

Permalink
fix(PPDSC-2077): revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin00163 committed Nov 2, 2022
1 parent f6fa0c6 commit 47e802c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ exports[`GridLayout renders a grid with autoColumns 1`] = `
-webkit-column-gap: 20px;
column-gap: 20px;
grid-template-areas: "a a";
grid-auto-columns: 100px;
grid-auto-columns: 80px;
}
<div
Expand Down Expand Up @@ -572,7 +572,7 @@ exports[`GridLayout renders a grid with autoRows 1`] = `
-webkit-column-gap: 20px;
column-gap: 20px;
grid-template-areas: "a a";
grid-auto-rows: 100px;
grid-auto-rows: 80px;
}
<div
Expand Down
4 changes: 2 additions & 2 deletions src/grid-layout/__tests__/grid-layout.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe('GridLayout', () => {
test('renders a grid with autoRows', () => {
const props: GridLayoutProps = {
areas: 'a a',
autoRows: '100px',
autoRows: 'sizing100',
columnGap: '20px',
rowGap: '20px',
children: defaultChildren,
Expand All @@ -229,7 +229,7 @@ describe('GridLayout', () => {
test('renders a grid with autoColumns', () => {
const props: GridLayoutProps = {
areas: 'a a',
autoColumns: '100px',
autoColumns: 'sizing100',
columnGap: '20px',
rowGap: '20px',
children: defaultChildren,
Expand Down
8 changes: 4 additions & 4 deletions src/grid-layout/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ export const StyledGridLayout = styled.div<GridLayoutProps>`
${handleResponsiveProp(
{autoRows: GRID_DEFAULT_PROPS.autoRows},
({autoRows}) => ({
gridAutoRows: autoRows,
({autoRows}, {theme}) => ({
gridAutoRows: mapTemplate(theme, autoRows),
}),
)}
${handleResponsiveProp(
{autoColumns: GRID_DEFAULT_PROPS.autoColumns},
({autoColumns}) => ({
gridAutoColumns: autoColumns,
({autoColumns}, {theme}) => ({
gridAutoColumns: mapTemplate(theme, autoColumns),
}),
)}
Expand Down

0 comments on commit 47e802c

Please sign in to comment.