Skip to content

Commit 31c7276

Browse files
authored
Fix: passing down custom props onto Row and Col (#49)
* fix: defined proptype object in filter props for Col * fix: defined proptype object in filter props for Row
1 parent fe0cd3d commit 31c7276

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Col/Col.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { themeProvider } from '../../theme';
66
import { filterProps, mediaQuery, columnWidth, gutter, CSSProperty } from '../../helpers';
77

88
const Col = styled(props =>
9-
React.createElement(props.elementType, filterProps(props, Col.PropTypes)),
9+
React.createElement(props.elementType, filterProps(props, Col.propTypes)),
1010
)`
1111
// Initial component properties
1212
box-sizing: border-box;

src/components/Row/Row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { themeProvider } from '../../theme';
66
import { filterProps, mediaQuery, gutter, CSSProperty } from '../../helpers';
77

88
const Row = styled(props =>
9-
React.createElement(props.elementType, filterProps(props, Row.PropTypes)),
9+
React.createElement(props.elementType, filterProps(props, Row.propTypes)),
1010
)`
1111
// Initial component property
1212
box-sizing: border-box;

0 commit comments

Comments
 (0)