From 0010a1fceedc417aa25b709d066341da97d42444 Mon Sep 17 00:00:00 2001 From: Lukas Senionis Date: Thu, 27 Oct 2022 00:49:14 +0300 Subject: [PATCH] fix(Field): remove incompatible properties (#42) * fix(Field): remove incompatible properties * fix(Field): remove the override --- src/deck-components/Field.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deck-components/Field.tsx b/src/deck-components/Field.tsx index af9f832..ac9e02b 100644 --- a/src/deck-components/Field.tsx +++ b/src/deck-components/Field.tsx @@ -3,7 +3,7 @@ import { FC, HTMLAttributes, ReactNode, RefAttributes } from 'react'; import { findModuleChild } from '../webpack'; import { FooterLegendProps } from './FooterLegend'; -export interface FieldProps extends HTMLAttributes, FooterLegendProps { +export interface FieldProps extends FooterLegendProps { label?: ReactNode; bottomSeparator?: 'standard' | 'thick' | 'none'; description?: ReactNode; @@ -20,7 +20,7 @@ export interface FieldProps extends HTMLAttributes, FooterLegend verticalAlignment?: 'center' | 'none'; // Alligns inline label with children focusable?: boolean; // Allows to get focus without any focusable children or on* callbacks onActivate?: (e: CustomEvent | MouseEvent) => void; - override onClick?: (e: CustomEvent | MouseEvent) => void; + onClick?: (e: CustomEvent | MouseEvent) => void; } export const Field = findModuleChild((m) => {