fix: use correct copy and colors for the msg request dialogs

pull/3206/head
Audric Ackermann 7 months ago
parent 2a1d969fa5
commit a854bfbbe5
No known key found for this signature in database

@ -86,6 +86,9 @@ export const OverlayMessageRequest = () => {
onClickClose: () => { onClickClose: () => {
window.inboxStore?.dispatch(updateConfirmModal(null)); window.inboxStore?.dispatch(updateConfirmModal(null));
}, },
okTheme: SessionButtonColor.Danger,
closeTheme: SessionButtonColor.Primary,
okText: window.i18n('clear'),
}) })
); );
} }

@ -158,8 +158,9 @@ export const declineConversationWithConfirm = ({
}) => { }) => {
window?.inboxStore?.dispatch( window?.inboxStore?.dispatch(
updateConfirmModal({ updateConfirmModal({
okText: blockContact ? window.i18n('block') : window.i18n('decline'), okText: blockContact ? window.i18n('block') : window.i18n('delete'),
cancelText: window.i18n('cancel'), cancelText: window.i18n('cancel'),
title: window.i18n('delete'),
i18nMessage: { token: 'messageRequestsDelete' }, i18nMessage: { token: 'messageRequestsDelete' },
onClickOk: async () => { onClickOk: async () => {
await declineConversationWithoutConfirm({ await declineConversationWithoutConfirm({
@ -175,6 +176,8 @@ export const declineConversationWithConfirm = ({
onClickClose: () => { onClickClose: () => {
window?.inboxStore?.dispatch(updateConfirmModal(null)); window?.inboxStore?.dispatch(updateConfirmModal(null));
}, },
okTheme: SessionButtonColor.Danger,
closeTheme: SessionButtonColor.Primary,
}) })
); );
}; };

Loading…
Cancel
Save