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 = ({