소스 검색

Remove async from switchContentWidthClickHandler

maeshinshin 2 년 전
부모
커밋
4cceb37840
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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, pageId, pageInfo, path, revisionId]);
 
-  const switchContentWidthClickHandler = useCallback(async(e: React.MouseEvent<HTMLInputElement>) => {
+  const switchContentWidthClickHandler = useCallback((e: React.MouseEvent<HTMLInputElement>) => {
     e.preventDefault();
 
     const newValue = !expandContentWidth;