Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3379726
D4208.id13325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4208.id13325.diff
View Options
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'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't support that file type yet :(
+ </Alert>
);
}
File Metadata
Details
Attached
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)
Attached To
Mode
D4208: [web] Use `Alert` component in `InvalidUploadModal`
Attached
Detach File
Event Timeline
Log In to Comment