Parcourir la source

refactor event type

maeshinshin il y a 2 ans
Parent
commit
b8fb647814
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      apps/app/src/components/PageControls/PageControls.tsx

+ 2 - 2
apps/app/src/components/PageControls/PageControls.tsx

@@ -66,7 +66,7 @@ const Tags = (props: TagsProps): JSX.Element => {
 };
 
 type WideViewMenuItemProps = AdditionalMenuItemsRendererProps & {
-  onClickMenuItem: (e:any) => void,
+  onClickMenuItem: (e: React.MouseEvent<HTMLInputElement>) => void,
   expandContentWidth?: boolean,
 }
 
@@ -223,7 +223,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
     onClickDeleteMenuItem(pageToDelete);
   }, [onClickDeleteMenuItem, pageId, pageInfo, path, revisionId]);
 
-  const switchContentWidthClickHandler = useCallback(async(e:any) => {
+  const switchContentWidthClickHandler = useCallback(async(e: React.MouseEvent<HTMLInputElement>) => {
     e.preventDefault();
 
     const newValue = !expandContentWidth;