From 23615295b0f354a04521eeb5b45a25b3b01b087d Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Thu, 20 Sep 2018 10:33:00 -0700 Subject: [PATCH] fix(Container): Pass all props through --- src/Grid/Container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Grid/Container.js b/src/Grid/Container.js index afc8776..78a4de0 100644 --- a/src/Grid/Container.js +++ b/src/Grid/Container.js @@ -19,8 +19,8 @@ const StyledContainer = createComponent({ StyledContainer.displayName = 'Container'; -const Container = ({ children, gutter, maxWidth, fluid }) => ( - +const Container = ({ gutter, ...rest }) => ( + {React.Children.map(children, child => React.cloneElement(child, { gutter }))} );