From 9725a3a311eb979f36e94d692a048bd03f032abc Mon Sep 17 00:00:00 2001 From: Souptik Datta Date: Mon, 13 May 2024 18:19:47 +0530 Subject: [PATCH] remove passing remaining props to BaseControl component Signed-off-by: Souptik Datta --- components/color-settings/index.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/color-settings/index.tsx b/components/color-settings/index.tsx index c7ef1a97..14f8c59f 100644 --- a/components/color-settings/index.tsx +++ b/components/color-settings/index.tsx @@ -50,11 +50,6 @@ interface ColorSettingProps { * Callback called when a color is selected. */ onChange: Function, - - /** - * Rest of the properties. - */ - [key: string]: any; } interface Color { @@ -80,7 +75,6 @@ export const ColorSetting: React.FC = ({ onChange, disableCustomColors = false, clearable = true, - ...rest }) => { const instanceId = useInstanceId(ColorSetting); const id = `color-settings-${instanceId}`; @@ -92,7 +86,6 @@ export const ColorSetting: React.FC = ({ help={help} className={className} hideLabelFromVision={hideLabelFromVision} - {...rest} >