Browse Source

Remove async from switchContentWidthClickHandler

maeshinshin 1 year ago
parent
commit
4cceb37840
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/components/PageControls/PageControls.tsx

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

@@ -222,7 +222,7 @@ const PageControlsSubstance = (props: PageControlsSubstanceProps): JSX.Element =
     onClickDeleteMenuItem(pageToDelete);
     onClickDeleteMenuItem(pageToDelete);
   }, [onClickDeleteMenuItem, pageId, pageInfo, path, revisionId]);
   }, [onClickDeleteMenuItem, pageId, pageInfo, path, revisionId]);
 
 
-  const switchContentWidthClickHandler = useCallback(async(e: React.MouseEvent<HTMLInputElement>) => {
+  const switchContentWidthClickHandler = useCallback((e: React.MouseEvent<HTMLInputElement>) => {
     e.preventDefault();
     e.preventDefault();
 
 
     const newValue = !expandContentWidth;
     const newValue = !expandContentWidth;