Page MenuHomePhabricator

D4208.id13324.diff
No OneTemporary

D4208.id13324.diff

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
@@ -2,27 +2,13 @@
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';
+import Alert from '../alert.react.js';
function InvalidUploadModal(): React.Node {
- const modalContext = useModalContext();
return (
- <Modal name="Invalid upload" onClose={modalContext.popModal}>
- <div className={css.modal_body}>
- <p>We don&apos;t support that file type yet :(</p>
- <Button
- onClick={modalContext.popModal}
- type="submit"
- variant="primary"
- className={css.ok_button}
- >
- OK
- </Button>
- </div>
- </Modal>
+ <Alert title="Invalid upload">
+ We don&apos;t support that file type yet :(
+ </Alert>
);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 6:47 PM (19 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594620
Default Alt Text
D4208.id13324.diff (1 KB)

Event Timeline