function1(provider){
const messages = defineMessages({
swal({ swal_text:{
title: 'blub', id: text: <FormattedMessage'<Component>.function1.swal_text',
defaultMessage: id='home.welcome12see' + provider,
values={{
},
confirm_text:{
id: '<Component>.function1.confirm_text',
xdefaultMessage: 'providerConfirm',
}
});
swal({
}} defaultMessage={'see {provider}'}title: 'blub',
/>, //<- returns object and no stringtext: this.context.intl.formatMessage(messages.swal_text),
type: 'error',
confirmButtonText: 'Confirm'this.context.intl.formatMessage(messages.swal_text),
confirmButtonClass: 'negative ui button',
buttonsStyling: false
}).then().catch(); |