Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32563398
D10276.1767354066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D10276.1767354066.diff
View Options
diff --git a/web/modals/chat/sidebar-promote-modal.css b/web/modals/chat/sidebar-promote-modal.css
--- a/web/modals/chat/sidebar-promote-modal.css
+++ b/web/modals/chat/sidebar-promote-modal.css
@@ -1,16 +1,3 @@
-div.modal_body {
- padding: 24px 32px 32px 32px;
- color: var(--fg);
- background-color: var(--modal-bg);
- border-radius: 16px;
- flex: 1;
- display: flex;
- flex-direction: column;
-}
-
-div.buttonContainer {
- padding-top: 32px;
- display: flex;
- gap: 24px;
- justify-content: flex-end;
+div.modalBody {
+ color: var(--text-background-primary-default);
}
diff --git a/web/modals/chat/sidebar-promote-modal.react.js b/web/modals/chat/sidebar-promote-modal.react.js
--- a/web/modals/chat/sidebar-promote-modal.react.js
+++ b/web/modals/chat/sidebar-promote-modal.react.js
@@ -24,26 +24,36 @@
onClose();
}, [onClose, onConfirm]);
+ const primaryButton = React.useMemo(
+ () => (
+ <Button onClick={handleConfirm} type="submit" variant="filled">
+ Promote to channel
+ </Button>
+ ),
+ [handleConfirm],
+ );
+
+ const secondaryButton = React.useMemo(
+ () => (
+ <Button onClick={onClose} type="submit" variant="outline">
+ Cancel
+ </Button>
+ ),
+ [onClose],
+ );
+
return (
<Modal
size="large"
name="Promote to channel"
icon="warning-circle"
onClose={onClose}
+ primaryButton={primaryButton}
+ secondaryButton={secondaryButton}
>
- <div className={css.modal_body}>
- <p>
- {`Are you sure you want to promote "${uiName}"?
- Promoting a thread to a channel cannot be undone.`}
- </p>
- <div className={css.buttonContainer}>
- <Button onClick={onClose} type="submit" variant="outline">
- Cancel
- </Button>
- <Button onClick={handleConfirm} type="submit" variant="filled">
- Promote to channel
- </Button>
- </div>
+ <div className={css.modalBody}>
+ Are you sure you want to promote “{uiName}”? Promoting a
+ thread to a channel cannot be undone.
</div>
</Modal>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 2, 11:41 AM (8 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5877129
Default Alt Text
D10276.1767354066.diff (2 KB)
Attached To
Mode
D10276: [web] cleanup sidebar promote modal
Attached
Detach File
Event Timeline
Log In to Comment