فهرست منبع

fix: change return type of EditPage component to null

Shun Miyazawa 3 ماه پیش
والد
کامیت
cdc8349e9e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/app/src/client/components/Hotkeys/Subscribers/EditPage.tsx

+ 2 - 2
apps/app/src/client/components/Hotkeys/Subscribers/EditPage.tsx

@@ -11,7 +11,7 @@ type Props = {
   onDeleteRender: () => void,
 }
 
-const EditPage = (props: Props): JSX.Element => {
+const EditPage = (props: Props): null => {
   const { t } = useTranslation('commons');
   const isEditable = useIsEditable();
   const startEditing = useStartEditing();
@@ -48,7 +48,7 @@ const EditPage = (props: Props): JSX.Element => {
     })();
   }, [startEditing, isEditable, path, props, t]);
 
-  return <></>;
+  return null;
 };
 
 EditPage.getHotkeyStrokes = () => {