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.

typescript nits

Sultan294d109774e1
diff --git a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
index 87cd1d6aaa..9427fcaa91 100644
--- a/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -85,11 +85,11 @@ const useScrub = ({
onChange: (value: StyleValue) => void;
onChangeComplete: (value: StyleValue) => void;
}): [
- React.MutableRefObject<HTMLInputElement | null>,
+ React.MutableRefObject<HTMLDivElement | null>,
React.MutableRefObject<HTMLInputElement | null>,
boolean
] => {
- const scrubRef = useRef<HTMLElement | null>(null);
+ const scrubRef = useRef<HTMLDivElement | null>(null);
const inputRef = useRef<HTMLInputElement | null>(null);
const [isInputActive, setIsInputActive] = useState(false);
const onChangeRef = useRef(onChange);
diff --git a/apps/designer/app/designer/features/style-panel/shared/property-icon.tsx b/apps/designer/app/designer/features/style-panel/shared/property-icon.tsx
index bf47a69cf0..5efbafc31c 100644
--- a/apps/designer/app/designer/features/style-panel/shared/property-icon.tsx
+++ b/apps/designer/app/designer/features/style-panel/shared/property-icon.tsx
@@ -6,7 +6,7 @@ import { forwardRef } from "react";
export const PropertyIcon = forwardRef<
HTMLButtonElement,
PropertyProps & { children: JSX.Element }
->(({ property, children }, forwardRef) => {
+>(({ property, children }) => {
const isCurrentBreakpoint = useIsFromCurrentBreakpoint(property);
return (
<TextFieldIconButton state={isCurrentBreakpoint ? "breakpoint" : undefined}>