From 7b7015503a638543f615b195fe73a4509223d41a Mon Sep 17 00:00:00 2001 From: Bill Date: Fri, 7 Jan 2022 17:53:41 -0500 Subject: [PATCH] Change notifications --- src/views/notification-center/NotificationCenterView.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/notification-center/NotificationCenterView.tsx b/src/views/notification-center/NotificationCenterView.tsx index 8f74f251..b1458826 100644 --- a/src/views/notification-center/NotificationCenterView.tsx +++ b/src/views/notification-center/NotificationCenterView.tsx @@ -1,5 +1,4 @@ import { FC, ReactNode, useCallback, useMemo, useState } from 'react'; -import { createPortal } from 'react-dom'; import { NotificationAlertEvent, NotificationConfirmEvent } from '../../events'; import { NotificationBubbleEvent } from '../../events/notification-center/NotificationBubbleEvent'; import { useUiEvent } from '../../hooks/events'; @@ -148,8 +147,8 @@ export const NotificationCenterView: FC = props =>
{ getBubbleAlerts }
- { createPortal(getAlerts, document.getElementById('nitro-alerts-container')) } - { createPortal(getConfirms, document.getElementById('nitro-confirms-container')) } + { getConfirms } + { getAlerts } ); }