Skip to content

Commit 11dd898

Browse files
committed
fix: flatten props issue
1 parent 6ab91aa commit 11dd898

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hooks/useThemeProps/usePropsResolution.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ export const usePropsResolutionWithComponentTheme = (
342342
'background: #4b5563; color: #FFF; font-weight: 700; padding: 2px 8px;'
343343
);
344344
}
345-
let [flattenProps, specificityMap] = callPropsFlattener(
345+
//TODO: hack
346+
let flattenProps: any, specificityMap;
347+
[flattenProps, specificityMap] = callPropsFlattener(
346348
incomingWithDefaultProps,
347349
{},
348350
2

0 commit comments

Comments
 (0)