From ad36749b040df042c1811199a21d6dc47ef1edde Mon Sep 17 00:00:00 2001 From: iuripires Date: Sat, 13 May 2023 12:47:01 +0100 Subject: [PATCH] fix: making color as keyof FlowbiteColors --- src/lib/components/ToggleSwitch/ToggleSwitch.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/ToggleSwitch/ToggleSwitch.tsx b/src/lib/components/ToggleSwitch/ToggleSwitch.tsx index dc074b544c..57e4de4590 100644 --- a/src/lib/components/ToggleSwitch/ToggleSwitch.tsx +++ b/src/lib/components/ToggleSwitch/ToggleSwitch.tsx @@ -26,7 +26,7 @@ export interface FlowbiteToggleSwitchToggleTheme { export type ToggleSwitchProps = Omit, 'onChange'> & { checked: boolean; - color?: FlowbiteColors; + color?: keyof FlowbiteColors; label: string; onChange: (checked: boolean) => void; theme?: DeepPartial;