From 30506eae715c3ff6543237a075ddd6ceb5ea216d Mon Sep 17 00:00:00 2001 From: Enzo Vieira Date: Thu, 26 Oct 2023 18:40:10 +0100 Subject: [PATCH] Change import to @lib alias --- context/Auth/AuthContext.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/context/Auth/AuthContext.tsx b/context/Auth/AuthContext.tsx index 3dad2bf4..62884030 100644 --- a/context/Auth/AuthContext.tsx +++ b/context/Auth/AuthContext.tsx @@ -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; @@ -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); @@ -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", ); }); }