refactor(types): use correct type for ControlButton fixes #2120

This commit is contained in:
moklick
2022-05-03 23:08:45 +02:00
parent b98e4ed6cd
commit c5c7ae76b4
+8 -2
View File
@@ -1,4 +1,10 @@
import React, { CSSProperties, HTMLAttributes, MouseEvent as ReactMouseEvent, WheelEvent } from 'react'; import React, {
ButtonHTMLAttributes,
CSSProperties,
HTMLAttributes,
MouseEvent as ReactMouseEvent,
WheelEvent,
} from 'react';
import { import {
OnSelectionChangeFunc, OnSelectionChangeFunc,
@@ -145,7 +151,7 @@ export interface ControlProps extends HTMLAttributes<HTMLDivElement> {
onInteractiveChange?: (interactiveStatus: boolean) => void; onInteractiveChange?: (interactiveStatus: boolean) => void;
} }
export interface ControlButtonProps extends HTMLAttributes<HTMLButtonElement> {} export interface ControlButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {}
export interface BackgroundProps extends HTMLAttributes<SVGElement> { export interface BackgroundProps extends HTMLAttributes<SVGElement> {
variant?: BackgroundVariant; variant?: BackgroundVariant;