Add headlines to confirmation modals
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -41,6 +41,8 @@ class ComposeModal extends ImmutablePureComponent {
|
||||
|
||||
if (composeText) {
|
||||
dispatch(openModal('CONFIRM', {
|
||||
icon: require('@tabler/icons/icons/trash.svg'),
|
||||
heading: <FormattedMessage id='confirmations.delete.heading' defaultMessage='Delete post' />,
|
||||
message: <FormattedMessage id='confirmations.delete.message' defaultMessage='Are you sure you want to delete this post?' />,
|
||||
confirm: intl.formatMessage(messages.confirm),
|
||||
onConfirm: () => dispatch(cancelReplyCompose()),
|
||||
|
||||
Reference in New Issue
Block a user