Refactored axios util into a service

This commit is contained in:
Alex Holliday committed 2024-08-18 17:42:49 -07:00
1 parent 92877e20ec
commit 20e4c7ef07
14 files changed
+293 -289

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import { login } from "../../Features/Auth/authSlice";
import { useDispatch } from "react-redux";
import { createToast } from "../../Utils/toastUtils";
import Button from "../../Components/Button";
import axiosInstance from "../../Utils/NetworkService";
import { networkService } from "../../main";
import Field from "../../Components/Inputs/Field";
import background from "../../assets/Images/background_pattern_decorative.png";
import Logo from "../../assets/icons/bwu-icon.svg?react";
@@ -248,7 +248,7 @@ const Login = () => {
const [step, setStep] = useState(0);
useEffect(() => {
axiosInstance
networkService
.doesAdminExist()
.then((response) => {
if (response.data.data === false) {