Page MenuHomePhabricator

D4208.id13325.diff
No OneTemporary

D4208.id13325.diff

diff --git a/web/modals/chat/invalid-upload.css b/web/modals/chat/invalid-upload.css
deleted file mode 100644
--- a/web/modals/chat/invalid-upload.css
+++ /dev/null
@@ -1,15 +0,0 @@
-div.modal_body {
- padding: 20px;
- color: var(--fg);
- background-color: var(--modal-bg);
- border-radius: 16px;
- flex: 1;
- display: flex;
- flex-direction: column;
- text-align: center;
-}
-
-.ok_button {
- width: 100%;
- margin-top: 24px;
-}
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:45 PM (19 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594613
Default Alt Text
D4208.id13325.diff (1 KB)

Event Timeline