diff --git a/web/modals/chat/invalid-upload.react.js b/web/modals/chat/invalid-upload.react.js index 13621df75..d1a93b0aa 100644 --- a/web/modals/chat/invalid-upload.react.js +++ b/web/modals/chat/invalid-upload.react.js @@ -1,39 +1,29 @@ // @flow import * as React from 'react'; import Button from '../../components/button.react.js'; import { useModalContext } from '../../modals/modal-provider.react'; import Modal from '../modal.react'; import css from './invalid-upload.css'; -type Props = { - +popModal: () => void, -}; -class InvalidUploadModal extends React.PureComponent { - render(): React.Node { - return ( - -
-

We don't support that file type yet :(

- -
-
- ); - } +function InvalidUploadModal(): React.Node { + const { popModal } = useModalContext(); + return ( + +
+

We don't support that file type yet :(

+ +
+
+ ); } -function ConnectedInvalidUploadModal(): React.Node { - const modalContext = useModalContext(); - - return ; -} - -export default ConnectedInvalidUploadModal; +export default InvalidUploadModal;