Change notifications

This commit is contained in:
Bill 2022-01-07 17:53:41 -05:00
parent 343600ef93
commit 7b7015503a

View File

@ -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 }
</> </>
); );
} }