Skip to content

Commit

Permalink
fix: grid.row gutter proptype error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 8, 2018
1 parent 65a4eb5 commit 4af03c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/grid/Row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ if (typeof window !== 'undefined') {
}

const BreakpointMap = PropTypes.shape({
xs: PropTypes.string,
sm: PropTypes.string,
md: PropTypes.string,
lg: PropTypes.string,
xl: PropTypes.string,
xxl: PropTypes.strin,
xs: PropTypes.number,
sm: PropTypes.number,
md: PropTypes.number,
lg: PropTypes.number,
xl: PropTypes.number,
xxl: PropTypes.number,
}).loose

const RowProps = {
Expand Down Expand Up @@ -104,7 +104,7 @@ export default {
if (typeof gutter === 'object') {
for (let i = 0; i <= responsiveArray.length; i++) {
const breakpoint = responsiveArray[i]
if (this.state.screens[breakpoint] && gutter[breakpoint] !== undefined) {
if (this.screens[breakpoint] && gutter[breakpoint] !== undefined) {
return gutter[breakpoint]
}
}
Expand Down

0 comments on commit 4af03c4

Please sign in to comment.