From 6d73539f9bae874c5a61ea42fdba9b8d87a62273 Mon Sep 17 00:00:00 2001 From: Gabriel Silva Date: Sat, 11 Feb 2023 17:32:54 -0300 Subject: [PATCH] Trocando o removeItem por clear - Front-end. - 5 --- front-end/src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front-end/src/App.tsx b/front-end/src/App.tsx index b6d523c..b5eebf6 100644 --- a/front-end/src/App.tsx +++ b/front-end/src/App.tsx @@ -1,4 +1,5 @@ -import { useState, useEffect, useId, useCallback, useMemo } from "react"; +import { useState, useEffect, useId } from "react"; +import { isMobile } from "react-device-detect"; import { useScrollTop } from "./hook/useScrollTop"; import { ToastContainer, toast } from "react-toastify"; import { infoApp } from "./data/GeneralInfo"; @@ -85,7 +86,7 @@ export function App () { }; //* Notificar sucesso apos o login - if ( success !== null && success === "success" ){ + if ( success !== null && success === "success" && !isMobile ){ toast.success("Login successfully.", { toastId: `${id}:success-s` });