Skip to content

Commit 4af03c4

Browse files
committed
fix: grid.row gutter proptype error
1 parent 65a4eb5 commit 4af03c4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: components/grid/Row.jsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ if (typeof window !== 'undefined') {
2222
}
2323

2424
const BreakpointMap = PropTypes.shape({
25-
xs: PropTypes.string,
26-
sm: PropTypes.string,
27-
md: PropTypes.string,
28-
lg: PropTypes.string,
29-
xl: PropTypes.string,
30-
xxl: PropTypes.strin,
25+
xs: PropTypes.number,
26+
sm: PropTypes.number,
27+
md: PropTypes.number,
28+
lg: PropTypes.number,
29+
xl: PropTypes.number,
30+
xxl: PropTypes.number,
3131
}).loose
3232

3333
const RowProps = {
@@ -104,7 +104,7 @@ export default {
104104
if (typeof gutter === 'object') {
105105
for (let i = 0; i <= responsiveArray.length; i++) {
106106
const breakpoint = responsiveArray[i]
107-
if (this.state.screens[breakpoint] && gutter[breakpoint] !== undefined) {
107+
if (this.screens[breakpoint] && gutter[breakpoint] !== undefined) {
108108
return gutter[breakpoint]
109109
}
110110
}

0 commit comments

Comments
 (0)