Skip to content

Commit 150388c

Browse files
committed
fix(icon-registry): types with children
1 parent 1b2d125 commit 150388c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/ui-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdacurry/component-library",
3-
"version": "6.3.15",
3+
"version": "6.3.16",
44
"description": "A React component library created by Lambda Curry.",
55
"author": "Lambda Curry",
66
"license": "ISC",

packages/ui-components/src/lib/theme/ThemeBase.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ export interface ThemeBaseProps {
99
as?: keyof JSX.IntrinsicElements;
1010
className?: string;
1111
theme?: Theme;
12+
children?: ReactNode;
1213
}
1314

14-
export const ThemeBase: FC<ThemeBaseProps> = ({ as: T = 'div', className, theme = muiTheme, ...props }) => (
15+
export const ThemeBase: FC<ThemeBaseProps> = ({ as: T = 'div', className, theme = muiTheme, children, ...props }) => (
1516
<MUIThemeProvider theme={muiTheme}>
16-
<T className={classNames('lc-theme-base', className)} {...props} />
17+
<T className={classNames('lc-theme-base', className)} {...props} children={children as any} />
1718
</MUIThemeProvider>
1819
);

0 commit comments

Comments
 (0)