Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Common/Notifications.js
Show All 34 Lines | notification.success({ | ||||
</Paragraph> | </Paragraph> | ||||
</a> | </a> | ||||
), | ), | ||||
icon: <TokenReceivedNotificationIcon />, | icon: <TokenReceivedNotificationIcon />, | ||||
style: { width: '100%' }, | style: { width: '100%' }, | ||||
}); | }); | ||||
}; | }; | ||||
const tokenIconSubmitSuccess = () => { | |||||
notification.success({ | |||||
message: 'Success', | |||||
description: ( | |||||
<Paragraph>Your eToken icon was successfully submitted.</Paragraph> | |||||
), | |||||
icon: <TokenReceivedNotificationIcon />, | |||||
style: { width: '100%' }, | |||||
}); | |||||
}; | |||||
const sendTokenNotification = link => { | const sendTokenNotification = link => { | ||||
notification.success({ | notification.success({ | ||||
message: 'Success', | message: 'Success', | ||||
description: ( | description: ( | ||||
<a href={link} target="_blank" rel="noopener noreferrer"> | <a href={link} target="_blank" rel="noopener noreferrer"> | ||||
<Paragraph> | <Paragraph> | ||||
Transaction successful. Click to view in block explorer. | Transaction successful. Click to view in block explorer. | ||||
</Paragraph> | </Paragraph> | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | notification.success({ | ||||
icon: <MessageSignedNotificationIcon />, | icon: <MessageSignedNotificationIcon />, | ||||
style: { width: '100%' }, | style: { width: '100%' }, | ||||
}); | }); | ||||
}; | }; | ||||
export { | export { | ||||
sendXecNotification, | sendXecNotification, | ||||
createTokenNotification, | createTokenNotification, | ||||
tokenIconSubmitSuccess, | |||||
sendTokenNotification, | sendTokenNotification, | ||||
xecReceivedNotification, | xecReceivedNotification, | ||||
eTokenReceivedNotification, | eTokenReceivedNotification, | ||||
errorNotification, | errorNotification, | ||||
messageSignedNotification, | messageSignedNotification, | ||||
}; | }; |