Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/Notifications.js
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | const messageSignedNotification = msgSignature => { | ||||
notification.success({ | notification.success({ | ||||
message: 'Message Signature Generated', | message: 'Message Signature Generated', | ||||
description: <Paragraph>{msgSignature}</Paragraph>, | description: <Paragraph>{msgSignature}</Paragraph>, | ||||
icon: <MessageSignedNotificationIcon />, | icon: <MessageSignedNotificationIcon />, | ||||
style: notificationStyle, | style: notificationStyle, | ||||
}); | }); | ||||
}; | }; | ||||
const generalNotification = msg => { | |||||
const notificationStyle = getDeviceNotificationStyle(); | |||||
notification.success({ | |||||
message: msg, | |||||
icon: <MessageSignedNotificationIcon />, | |||||
style: notificationStyle, | |||||
}); | |||||
}; | |||||
export { | export { | ||||
sendXecNotification, | sendXecNotification, | ||||
createTokenNotification, | createTokenNotification, | ||||
tokenIconSubmitSuccess, | tokenIconSubmitSuccess, | ||||
sendTokenNotification, | sendTokenNotification, | ||||
xecReceivedNotification, | xecReceivedNotification, | ||||
eTokenReceivedNotification, | eTokenReceivedNotification, | ||||
errorNotification, | errorNotification, | ||||
messageSignedNotification, | messageSignedNotification, | ||||
generalNotification, | |||||
}; | }; |