Corrige diversos toasts

This commit is contained in:
Matheus Albino Brunhara
2022-09-03 16:20:57 -03:00
parent 41fd7ea0b6
commit df4fe0ffef
13 changed files with 147 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ import * as sessionRoutes from '../services/api/session';
import LocalStorage from '../LocalStorage';
import { Action } from "../components/Action";
import { UserContext } from "../App";
import { closeToast } from "../services/utils";
const Page: React.FC = () => {
const [showToast, setShowToast] = useState(false);
@@ -162,7 +163,7 @@ const Page: React.FC = () => {
position="top"
color='danger'
isOpen={showToast}
onDidDismiss={() => setShowToast(false)}
onDidDismiss={() => closeToast(setShowToast)}
message={messageToast}
duration={2500}
/>