Skip to content

Commit

Permalink
fix(lib): correct propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
John Persson committed Mar 11, 2018
1 parent 6d95373 commit 49f5fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/column.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ const columnPropTypes = {

Column.propTypes = {
styledFlexboxGrid: shape(propTypes.styledFlexboxGrid),
theme: shape({}),
theme: shape({
styledFlexboxGrid: shape(propTypes.styledFlexboxGrid),
}),
...columnPropTypes,
};

Expand All @@ -106,6 +108,7 @@ Column.defaultProps = {
// hidden: false,
// debug: false,
// auto: false,
theme: shape({}),
styledFlexboxGrid: undefined,
};

Expand Down
4 changes: 3 additions & 1 deletion src/row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const Row = (props) => {
const {
breakpoints, rowWidth, getGutterWidth, getColumnWidth,
} = styledFlexboxGrid;
console.log(props.theme);

const RowhResponsiveProps = withResponsiveProps(StyledRow, {
align: alignColumns,
Expand Down Expand Up @@ -76,7 +77,7 @@ const rowPropTypes = {
// Responsive props
theme: shape({
styledFlexboxGrid: shape(propTypes.styledFlexboxGrid),
}).isRequired,
}),
align: oneOfType([oneOf(validAlignProps), objectOf(oneOf(validAlignProps))]),
justify: oneOfType([oneOf(validJustifyProps), objectOf(oneOf(validJustifyProps))]),
direction: oneOfType([
Expand All @@ -93,6 +94,7 @@ Row.defaultProps = {
align: undefined,
justify: undefined,
direction: undefined,
theme: shape({}),
fullWidth: false,
center: true,
debug: false,
Expand Down

0 comments on commit 49f5fed

Please sign in to comment.