feat: add queue filter to tickets list

This commit is contained in:
canove
2021-01-13 12:22:43 -03:00
parent ef6291c48d
commit aac6d30083
9 changed files with 160 additions and 24 deletions

View File

@@ -6,7 +6,6 @@ import { toast } from "react-toastify";
import { i18n } from "../../translate/i18n";
import api from "../../services/api";
import toastError from "../../errors/toastError";
// import { useLocalStorage } from "../../hooks/useLocalStorage";
const useAuth = () => {
const history = useHistory();
@@ -62,12 +61,11 @@ const useAuth = () => {
api.defaults.headers.Authorization = `Bearer ${data.token}`;
setIsAuth(true);
setUser(data.user);
setLoading(false);
} catch (err) {
toastError(err);
setLoading(false);
}
}
setLoading(false);
})();
}, []);