From dc3c6cad0520a2244531db12750e1e85679b6ce5 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 11 Mar 2023 15:41:46 +0100 Subject: [PATCH] success toast after upload --- interface/src/AppRouting.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/interface/src/AppRouting.tsx b/interface/src/AppRouting.tsx index 0fbde8ea2..b71c9eba2 100644 --- a/interface/src/AppRouting.tsx +++ b/interface/src/AppRouting.tsx @@ -14,7 +14,6 @@ import AuthenticatedRouting from 'AuthenticatedRouting'; interface SecurityRedirectProps { message: string; - // variant?: VariantType; signOut?: boolean; } @@ -22,8 +21,7 @@ const RootRedirect: FC = ({ message, signOut }) => { const authenticationContext = useContext(AuthenticationContext); useEffect(() => { signOut && authenticationContext.signOut(false); - // TODO toast variant - toast.error(message); + toast.success(message); }, [message, signOut, authenticationContext]); return ; };