diff --git a/web/modals/chat/invalid-upload.react.js b/web/modals/chat/invalid-upload.react.js --- a/web/modals/chat/invalid-upload.react.js +++ b/web/modals/chat/invalid-upload.react.js @@ -7,33 +7,23 @@ 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 ConnectedInvalidUploadModal(): React.Node { +function InvalidUploadModal(): React.Node { const modalContext = useModalContext(); - - return ; + return ( + +
+

We don't support that file type yet :(

+ +
+
+ ); } -export default ConnectedInvalidUploadModal; +export default InvalidUploadModal;