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

@@ -40,6 +40,7 @@ import sessionsService from "../services/functions/sessionsService";
import usersService from "../services/functions/usersService";
import { UserContext } from "../App";
import { Color } from "@ionic/core";
import { closeToast } from "../services/utils";
interface ScanNewProps {
match: {
@@ -393,7 +394,7 @@ const Perfil: React.FC<ScanNewProps> = (props) => {
position="top"
color={toastColor}
isOpen={showToast}
onDidDismiss={() => setShowToast(false)}
onDidDismiss={() => closeToast(setShowToast)}
message={toastMessage}
duration={2500}
/>