mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Changes
This commit is contained in:
parent
73e79c98c0
commit
3fbc7beea7
@ -20,7 +20,6 @@ export const NotificationCenterView: FC<NotificationCenterViewProps> = props =>
|
|||||||
|
|
||||||
const onNotificationAlertEvent = useCallback((event: NotificationAlertEvent) =>
|
const onNotificationAlertEvent = useCallback((event: NotificationAlertEvent) =>
|
||||||
{
|
{
|
||||||
console.log(event);
|
|
||||||
const alertItem = new NotificationAlertItem(event.messages, event.alertType, event.clickUrl, event.clickUrlText, event.title, event.imageUrl);
|
const alertItem = new NotificationAlertItem(event.messages, event.alertType, event.clickUrl, event.clickUrlText, event.title, event.imageUrl);
|
||||||
|
|
||||||
setAlerts(prevValue => [ alertItem, ...prevValue ]);
|
setAlerts(prevValue => [ alertItem, ...prevValue ]);
|
||||||
@ -30,7 +29,6 @@ export const NotificationCenterView: FC<NotificationCenterViewProps> = props =>
|
|||||||
|
|
||||||
const onNotificationBubbleEvent = useCallback((event: NotificationBubbleEvent) =>
|
const onNotificationBubbleEvent = useCallback((event: NotificationBubbleEvent) =>
|
||||||
{
|
{
|
||||||
console.log(event);
|
|
||||||
const notificationItem = new NotificationBubbleItem(event.message, event.notificationType, event.imageUrl, event.linkUrl);
|
const notificationItem = new NotificationBubbleItem(event.message, event.notificationType, event.imageUrl, event.linkUrl);
|
||||||
|
|
||||||
setBubbleAlerts(prevValue => [ notificationItem, ...prevValue ]);
|
setBubbleAlerts(prevValue => [ notificationItem, ...prevValue ]);
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fas,
|
.fas,
|
||||||
|
.svg-inline--fa,
|
||||||
.nitro-currency-icon {
|
.nitro-currency-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
Loading…
Reference in New Issue
Block a user