Skip to content

Commit

Permalink
Change import to lib alias
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoVieira committed Oct 26, 2023
1 parent ff94232 commit 0f31eaa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions context/Auth/AuthContext.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createContext, useContext, useEffect, useState } from "react";
import { useRouter } from "next/router";
import API from "../../lib/api";
import * as api from "../../lib/api";
import * as USER from "../../lib/user";
import API from "@lib/api";
import * as api from "@lib/api";
import * as USER from "@lib/user";

interface ILoginDTO {
email: string;
Expand Down Expand Up @@ -148,11 +148,11 @@ export function AuthProvider({ children }) {
setErrors("Request denied by the server");
} else if (errors.request) {
setErrors(
"No connection to the server. Please check your internet connection and try again later"
"No connection to the server. Please check your internet connection and try again later",
);
} else {
setErrors(
"Something went wrong :/ Please check your internet connection and try again later"
"Something went wrong :/ Please check your internet connection and try again later",
);
}
setUser(undefined);
Expand All @@ -179,7 +179,7 @@ export function AuthProvider({ children }) {
.catch((errors) => {
setUser(undefined);
setErrors(
"Something went wrong :/ Please check your internet connection and try again later"
"Something went wrong :/ Please check your internet connection and try again later",
);
});
}
Expand Down

0 comments on commit 0f31eaa

Please sign in to comment.