From 10541839aee5d0d5d90a949b518adf8eaaf95ac6 Mon Sep 17 00:00:00 2001 From: William Duckitt Date: Tue, 7 May 2024 11:29:49 +0200 Subject: [PATCH] Update ToggleButtonProps interface with onColor and offColor options --- ReactApp/src/components/BaseComponents/ToggleButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactApp/src/components/BaseComponents/ToggleButton.tsx b/ReactApp/src/components/BaseComponents/ToggleButton.tsx index 789176ad..9b1f437c 100644 --- a/ReactApp/src/components/BaseComponents/ToggleButton.tsx +++ b/ReactApp/src/components/BaseComponents/ToggleButton.tsx @@ -150,11 +150,11 @@ interface ToggleButtonProps { /** * Custom on color to be used, must be derived from Material UI theme color. */ - onColor?: string; + onColor?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "inherit"; /** * Custom off color to be used, must be derived from Material UI theme color. */ - offColor?: string; + offColor?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "inherit"; /** If defined then component will act as momentary button*/ momentary?: boolean;