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.

Merge two Omits into one

Mateusz Burzyński39fea5af0ae9
diff --git a/packages/design-system/src/components/text-field.tsx b/packages/design-system/src/components/text-field.tsx
index da3716da3b..ec4164a2cd 100644
--- a/packages/design-system/src/components/text-field.tsx
+++ b/packages/design-system/src/components/text-field.tsx
@@ -147,17 +147,14 @@ const TextFieldBase = styled("div", {
});
type TextFieldProps = Omit<
- Omit<
- React.ComponentProps<typeof TextFieldBase>,
- "onChange" | "onFocus" | "onBlur"
- > &
- React.ComponentProps<"input">,
- "prefix"
-> & {
- inputRef?: React.Ref<HTMLInputElement>;
- prefix?: React.ReactNode;
- suffix?: React.ReactNode;
-};
+ React.ComponentProps<typeof TextFieldBase>,
+ "onChange" | "onFocus" | "onBlur" | "prefix"
+> &
+ React.ComponentProps<"input"> & {
+ inputRef?: React.Ref<HTMLInputElement>;
+ prefix?: React.ReactNode;
+ suffix?: React.ReactNode;
+ };
export const TextField = React.forwardRef<
React.ElementRef<typeof TextFieldBase>,