Skip to content

Commit

Permalink
refactor(component): explicitly type mergeDeep for FlowbiteTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
tulup-conner committed Aug 20, 2022
1 parent 7b2d112 commit 993bc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Flowbite/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Flowbite: FC<FlowbiteProps> = ({ children, theme = {} }) => {
const { theme: customTheme = {}, dark, usePreferences = true } = theme;
const [mode, setMode, toggleMode] = useThemeMode(usePreferences);

const mergedTheme = mergeDeep(defaultTheme, customTheme) as unknown as FlowbiteTheme;
const mergedTheme = mergeDeep<FlowbiteTheme>(defaultTheme, customTheme);

useEffect(() => {
if (dark) {
Expand Down

0 comments on commit 993bc1a

Please sign in to comment.