Skip to content

Commit

Permalink
remove passing remaining props to BaseControl component
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <[email protected]>
  • Loading branch information
Souptik2001 committed May 13, 2024
1 parent a0eec76 commit 9725a3a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions components/color-settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ interface ColorSettingProps {
* Callback called when a color is selected.
*/
onChange: Function,

/**
* Rest of the properties.
*/
[key: string]: any;
}

interface Color {
Expand All @@ -80,7 +75,6 @@ export const ColorSetting: React.FC<ColorSettingProps> = ({
onChange,
disableCustomColors = false,
clearable = true,
...rest
}) => {
const instanceId = useInstanceId(ColorSetting);
const id = `color-settings-${instanceId}`;
Expand All @@ -92,7 +86,6 @@ export const ColorSetting: React.FC<ColorSettingProps> = ({
help={help}
className={className}
hideLabelFromVision={hideLabelFromVision}
{...rest}
>
<ColorPalette
colors={colors}
Expand Down

0 comments on commit 9725a3a

Please sign in to comment.