Skip to content

Commit

Permalink
components(DarkThemeToggle): fix custom icon types (#1144)
Browse files Browse the repository at this point in the history
components(DarkThemeToggle): fix icon types

Co-authored-by: Sebastian Sutu <[email protected]>
  • Loading branch information
SutuSebastian and Sebastian Sutu authored Nov 23, 2023
1 parent cc65b03 commit ca6840c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/DarkThemeToggle/DarkThemeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';

import type { ComponentProps, FC } from 'react';
import type { IconBaseProps } from 'react-icons';
import { HiMoon, HiSun } from 'react-icons/hi';
import { twMerge } from 'tailwind-merge';
import { mergeDeep } from '../../helpers/merge-deep';
Expand All @@ -18,8 +19,8 @@ export interface FlowbiteDarkThemeToggleRootTheme {
}

export interface DarkThemeToggleProps extends ComponentProps<'button'> {
iconDark?: string;
iconLight?: string;
iconDark?: FC<IconBaseProps>;
iconLight?: FC<IconBaseProps>;
theme?: DeepPartial<FlowbiteDarkThemeToggleTheme>;
}

Expand Down

1 comment on commit ca6840c

@vercel
Copy link

@vercel vercel bot commented on ca6840c Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.