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( + () => ( + + Promote to channel + + ), + [handleConfirm], + ); + + const secondaryButton = React.useMemo( + () => ( + + Cancel + + ), + [onClose], + ); + return ( - - - {`Are you sure you want to promote "${uiName}"? - Promoting a thread to a channel cannot be undone.`} - - - - Cancel - - - Promote to channel - - + + Are you sure you want to promote “{uiName}”? Promoting a + thread to a channel cannot be undone. );
- {`Are you sure you want to promote "${uiName}"? - Promoting a thread to a channel cannot be undone.`} -