ryoji-s 4 ani în urmă
părinte
comite
2ce65ebb01
1 a modificat fișierele cu 2 adăugiri și 6 ștergeri
  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);