let messages = defineMessages({
swal_text:{
id: 'LoginModal.text.incompleteProviderData',
defaultMessage: 'The data from {provider} was incomplete. In case you want to use this provider, please add an e-mail address at the provider itself and try again at SlideWiki.'
},
});
swal({
title: this.context.intl.formatMessage({
id: 'LoginModal.title.error',
defaultMessage: 'Error',
}),
text: this.context.intl.formatMessage(messages.swal_text, {
provider: provider
}),
type: 'error',
confirmButtonText: this.context.intl.formatMessage({
id: 'LoginModal.button.confirm',
defaultMessage: 'Confirm',
}),
confirmButtonClass: 'negative ui button',
buttonsStyling: false
}).then().catch(); |