mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Change notifications
This commit is contained in:
parent
343600ef93
commit
7b7015503a
@ -1,5 +1,4 @@
|
|||||||
import { FC, ReactNode, useCallback, useMemo, useState } from 'react';
|
import { FC, ReactNode, useCallback, useMemo, useState } from 'react';
|
||||||
import { createPortal } from 'react-dom';
|
|
||||||
import { NotificationAlertEvent, NotificationConfirmEvent } from '../../events';
|
import { NotificationAlertEvent, NotificationConfirmEvent } from '../../events';
|
||||||
import { NotificationBubbleEvent } from '../../events/notification-center/NotificationBubbleEvent';
|
import { NotificationBubbleEvent } from '../../events/notification-center/NotificationBubbleEvent';
|
||||||
import { useUiEvent } from '../../hooks/events';
|
import { useUiEvent } from '../../hooks/events';
|
||||||
@ -148,8 +147,8 @@ export const NotificationCenterView: FC<NotificationCenterViewProps> = props =>
|
|||||||
<div className="nitro-notification-center">
|
<div className="nitro-notification-center">
|
||||||
{ getBubbleAlerts }
|
{ getBubbleAlerts }
|
||||||
</div>
|
</div>
|
||||||
{ createPortal(getAlerts, document.getElementById('nitro-alerts-container')) }
|
{ getConfirms }
|
||||||
{ createPortal(getConfirms, document.getElementById('nitro-confirms-container')) }
|
{ getAlerts }
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user