Use MouseEventHandler as type

pull/28217/head
Florian Duros 2022-10-14 10:28:04 +02:00
parent 3ecd67aa80
commit 6b6af28ea9
No known key found for this signature in database
GPG Key ID: 9700AA5870258A0B
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from "react";
import React, { MouseEventHandler } from "react";
import { useWysiwyg } from "@matrix-org/matrix-wysiwyg";
import classNames from "classnames";
@ -39,7 +39,7 @@ function Tooltip({ label, keyCombo }: TooltipProps) {
interface ButtonProps extends TooltipProps {
className: string;
isActive: boolean;
onClick: () => void;
onClick: MouseEventHandler<HTMLButtonElement>;
}
function Button({ label, keyCombo, onClick, isActive, className }: ButtonProps) {