ryoji-s 3 лет назад
Родитель
Сommit
2ce65ebb01
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      packages/app/src/components/CreateTemplateModal.jsx

+ 2 - 6
packages/app/src/components/CreateTemplateModal.jsx

@@ -6,13 +6,9 @@ import { useTranslation } from 'react-i18next';
 import { Modal, ModalHeader, ModalBody } from 'reactstrap';
 import urljoin from 'url-join';
 
-type Props = {
-  path?: string,
-};
-
-const CreateTemplateModal = (props: Props) => {
+const CreateTemplateModal = (props) => {
   const { t } = useTranslation();
-  const { path } = props;
+  const { path } = props!;
 
   const parentPath = pathUtils.addTrailingSlash(path);