mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
feat: add queue filter to tickets list
This commit is contained in:
@@ -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);
|
||||
})();
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user