From 188be37eefed137c2f22172e8dc05a115bf81e1a Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Wed, 22 Nov 2023 12:20:57 +0530 Subject: [PATCH] fix: children types --- packages/react/src/styled.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/packages/react/src/styled.tsx b/packages/react/src/styled.tsx index 2c948fb7..1f2a87ce 100644 --- a/packages/react/src/styled.tsx +++ b/packages/react/src/styled.tsx @@ -994,7 +994,6 @@ export function verboseStyled( const StyledComponent = ( { - children, //@ts-ignore orderedResolved: BUILD_TIME_ORDERED_RESOLVED = [], //@ts-ignore @@ -1009,7 +1008,6 @@ export function verboseStyled( Partial> & Partial> & { as?: any; - children?: any; }, 'animationComponentGluestack' >, @@ -2019,15 +2017,11 @@ export function verboseStyled( style={resolvedStyleMemo} as={AsComp} ref={ref} - > - {children} - + /> ); } else { component = ( - - {children} - + ); } } else { @@ -2040,18 +2034,14 @@ export function verboseStyled( states={states} style={resolvedStyleMemo} ref={ref} - > - {children} - + /> ) : ( - {children} - + /> ); } if (containsDescendant) {