Skip to content

Commit

Permalink
fix: add typing for GlobalThemeController
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Jul 21, 2023
1 parent f102bc0 commit 0f1c1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/theme/ThemeController.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, {PropsWithChildren} from 'react';

import blockOrigin from 'bem-cn-lite';

Expand Down Expand Up @@ -46,7 +46,7 @@ export const GlobalThemeController = ({children}: CommonThemeControllerProps) =>
return <>{children}</>;
};

export const ThemeController = ({children}) => {
export const ThemeController = ({children}: PropsWithChildren) => {
const theme = useTheme();

return <div className={b({theme})}>{children}</div>;
Expand Down

0 comments on commit 0f1c1b6

Please sign in to comment.