Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Container): Pass all props through
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 20, 2018
1 parent a786b09 commit 2361529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Grid/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const StyledContainer = createComponent({

StyledContainer.displayName = 'Container';

const Container = ({ children, gutter, maxWidth, fluid }) => (
<StyledContainer fluid={fluid} gutter={gutter} maxWidth={maxWidth}>
const Container = ({ gutter, ...rest }) => (
<StyledContainer gutter={gutter} {...rest}>
{React.Children.map(children, child => React.cloneElement(child, { gutter }))}
</StyledContainer>
);
Expand Down

0 comments on commit 2361529

Please sign in to comment.