From fb795fd71f78750180ab01cd65bc35144a696ffe Mon Sep 17 00:00:00 2001 From: Dennis Collaris <d.collaris@me.com> Date: Thu, 10 Oct 2024 15:16:00 +0200 Subject: [PATCH] fix: use more specific event to silence commit hook warnings --- libs/shared/lib/components/inputs/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/shared/lib/components/inputs/index.tsx b/libs/shared/lib/components/inputs/index.tsx index 0bf99b554..57d4600de 100644 --- a/libs/shared/lib/components/inputs/index.tsx +++ b/libs/shared/lib/components/inputs/index.tsx @@ -1,4 +1,4 @@ -import React, { MouseEventHandler, useEffect, useState } from 'react'; +import React, { useEffect, useState } from 'react'; import styles from './inputs.module.scss'; import { DropdownTrigger, DropdownContainer, DropdownItem, DropdownItemContainer } from '../dropdowns'; import Info from '../info'; @@ -34,7 +34,7 @@ type TextProps = { className?: string; validate?: (value: any) => boolean; onChange?: (value: string) => void; - onClick?: (e: any) => void; + onClick?: (e: React.MouseEvent<HTMLElement>) => void; }; type NumberProps = { -- GitLab