From 80e782c8bfae780137f0ac4d69ddf2302aed2930 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 23 Oct 2018 02:07:06 -0400 Subject: [PATCH] Components: Avoid SlotFill props destructuring (#10921) --- packages/components/src/slot-fill/index.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/components/src/slot-fill/index.js b/packages/components/src/slot-fill/index.js index c14f7adafc8791..bec51806039a6d 100644 --- a/packages/components/src/slot-fill/index.js +++ b/packages/components/src/slot-fill/index.js @@ -10,18 +10,10 @@ export { Fill }; export { Provider }; export function createSlotFill( name ) { - const FillComponent = ( { children, ...props } ) => ( - - { children } - - ); + const FillComponent = ( props ) => ; FillComponent.displayName = name + 'Fill'; - const SlotComponent = ( { children, ...props } ) => ( - - { children } - - ); + const SlotComponent = ( props ) => ; SlotComponent.displayName = name + 'Slot'; return {