Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix ColorControl type

Andrey Okonetchnikovcfd149bd7f98
diff --git a/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx b/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
index 503ed8f43f..719e5026b8 100644
--- a/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
+++ b/apps/designer/app/designer/features/style-panel/controls/color/color-control.tsx
@@ -12,7 +12,6 @@ import {
} from "@webstudio-is/design-system";
import { getFinalValue } from "../../shared/get-final-value";
import type { ControlProps } from "../../style-sections";
-import { StyleConfig } from "../../shared/configs";
const stringifyRGBA = (color: RGBColor) => {
const { r, g, b, a = 1 } = color;
@@ -43,7 +42,6 @@ type ColorPickerProps = {
onChangeComplete: (value: string) => void;
value: string;
id: string;
- styleConfig: StyleConfig;
};
const ColorPicker = ({
@@ -123,7 +121,6 @@ export const ColorControl = ({
<ColorPicker
id={styleConfig.property}
value={String(value.value)}
- styleConfig={styleConfig}
onChange={(value) => {
setValue(value, { isEphemeral: true });
}}