From b152ba0c87ab998365d398c0347dee6163ebcb78 Mon Sep 17 00:00:00 2001 From: maria-hambardzumian Date: Mon, 23 Dec 2024 20:02:57 +0400 Subject: [PATCH] EPMRPP-97554 || Removed uid from System Alert --- src/components/systemAlert/systemAlert.tsx | 7 +++---- src/components/systemAlert/types.ts | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/systemAlert/systemAlert.tsx b/src/components/systemAlert/systemAlert.tsx index a5bb85a..10f5f9f 100644 --- a/src/components/systemAlert/systemAlert.tsx +++ b/src/components/systemAlert/systemAlert.tsx @@ -9,7 +9,6 @@ const ERROR_DURATION = 7000; const DEFAULT_DURATION = 4000; export const SystemAlert: FC = ({ - uid, title, onClose, icon = null, @@ -21,11 +20,11 @@ export const SystemAlert: FC = ({ useEffect(() => { const timer = setTimeout(() => { - onClose(uid); + onClose(); }, adjustedDuration); return () => clearTimeout(timer); - }, [adjustedDuration, uid, onClose]); + }, [adjustedDuration, onClose]); const getIcon = (): ReactElement | null => { switch (type) { @@ -47,7 +46,7 @@ export const SystemAlert: FC = ({