diff --git a/src/pages/Login.jsx b/src/pages/Login.jsx
index 4dcc3af5..4245152c 100644
--- a/src/pages/Login.jsx
+++ b/src/pages/Login.jsx
@@ -1,11 +1,13 @@
-import React, { useState, useEffect, use } from "react";
+import React, { useState, useEffect } from "react";
import { Link, useNavigate } from "react-router-dom";
import { useAuth } from "../components/utils/AuthProvider";
import API_KEY from "../components/utils/apiKeys";
import { UserInfos } from "../components/utils/Functions-Endpoints/General";
+import CabecalhoError from "../components/utils/fetchErros/CabecalhoError";
function Login({ onEnterSystem }) {
const { setAuthTokens } = useAuth();
+ const [showCabecalho, setShowCabecalho ] = useState(false)
const navigate = useNavigate();
const [form, setForm] = useState({
username: "",
@@ -126,6 +128,9 @@ function Login({ onEnterSystem }) {
} else if (UserData?.roles?.includes("financeiro")) {
navigate(`/financeiro/`);
}
+ }else{
+ console.log("ERROROROROROOR")
+ setShowCabecalho(true)
}
} else {
setAlert("Preencha todos os campos!");
@@ -148,11 +153,7 @@ function Login({ onEnterSystem }) {
Entre com os dados que você inseriu durante o registro.
- {alert && (
-
- {alert}
-
- )}
+