Ver código fonte

imprv return type of SavePageControls

kaori 3 anos atrás
pai
commit
25624414b7
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      packages/app/src/components/SavePageControls.tsx

+ 2 - 1
packages/app/src/components/SavePageControls.tsx

@@ -1,6 +1,7 @@
 import React from 'react';
 
 import { pagePathUtils } from '@growi/core';
+import { NullableBoolean } from 'aws-sdk/clients/synthetics';
 import { useTranslation } from 'next-i18next';
 import {
   UncontrolledButtonDropdown, Button,
@@ -38,7 +39,7 @@ type Props = {
 
 const { isTopPage } = pagePathUtils;
 
-export const SavePageControls = (props: Props) => {
+export const SavePageControls = (props: Props): JSX.Element | null => {
   const { t } = useTranslation();
   const { data: currentPagePath } = useCurrentPagePath();
   const { data: isEditable } = useIsEditable();