diff --git a/web/modals/chat/toggle-pin-modal.css b/web/modals/chat/toggle-pin-modal.css --- a/web/modals/chat/toggle-pin-modal.css +++ b/web/modals/chat/toggle-pin-modal.css @@ -1,34 +1,5 @@ .confirmationText { color: var(--pin-message-information-text-color); - padding: 16px 32px 0 32px; font-size: small; -} - -.buttonContainer { - width: 100%; - display: flex; - flex-direction: column; - align-self: center; - align-items: stretch; - margin-bottom: 16px; -} - -.togglePinButton { - margin: 0 32px 0 32px; -} - -.cancelButton { - color: white; - display: flex; - justify-content: center; - margin-top: 16px; -} - -.cancelButton:hover { - cursor: pointer; - text-decoration: underline; -} - -.messageContainer { - margin: 24px; + margin-bottom: 24px; } diff --git a/web/modals/chat/toggle-pin-modal.react.js b/web/modals/chat/toggle-pin-modal.react.js --- a/web/modals/chat/toggle-pin-modal.react.js +++ b/web/modals/chat/toggle-pin-modal.react.js @@ -100,29 +100,42 @@ popModal, ]); + const primaryButton = React.useMemo( + () => ( + + {modalInfo.buttonText} + + ), + [modalInfo.buttonColor, modalInfo.buttonText, onClick], + ); + + const secondaryButton = React.useMemo( + () => ( + + Cancel + + ), + [popModal], + ); + return ( - + {modalInfo.confirmationText} - - - - - - {modalInfo.buttonText} - - - Cancel - - + ); }