diff --git a/nest_frontend/contexts/ContextServer.js b/nest_frontend/contexts/ContextServer.js index 1ca8cd6..c9a8402 100644 --- a/nest_frontend/contexts/ContextServer.js +++ b/nest_frontend/contexts/ContextServer.js @@ -16,7 +16,7 @@ import { createContext } from "react" */ const ContextServer = createContext({ server: null, - setServer: () => console.error("Provato ad eseguire setServer mentre fuori da un ContextServer.Provider!"), - fetchData: () => console.error("Provato ad eseguire fetchData mentre fuori da un ContextServer.Provider!"), + setServer: () => console.error("Trying to setServer while outside a ContextServer.Provider!"), + fetchData: () => console.error("Trying to fetchData while outside a ContextServer.Provider!"), }) export default ContextServer diff --git a/nest_frontend/contexts/ContextTheme.js b/nest_frontend/contexts/ContextTheme.js index 3b2938f..85f9a6b 100644 --- a/nest_frontend/contexts/ContextTheme.js +++ b/nest_frontend/contexts/ContextTheme.js @@ -14,6 +14,6 @@ import { createContext } from "react" const ContextTheme = createContext({ isSet: false, theme: "ThemeDark", - setTheme: () => console.error("Provato a eseguire setTheme mentre fuori da un ContextTheme.Provider!"), + setTheme: () => console.error("Trying to setTheme while outside a ContextTheme.Provider!"), }) export default ContextTheme diff --git a/nest_frontend/contexts/ContextUser.js b/nest_frontend/contexts/ContextUser.js index f80e44f..9a883c5 100644 --- a/nest_frontend/contexts/ContextUser.js +++ b/nest_frontend/contexts/ContextUser.js @@ -19,8 +19,8 @@ import { createContext } from "react" */ const ContextUser = createContext({ user: null, - login: () => console.error("Provato ad eseguire l'accesso mentre fuori da un ContextUser.Provider!"), - logout: () => console.error("Provato ad eseguire il logout mentre fuori da un while outside a ContextUser.Provider!"), - fetchDataAuth: () => console.error("Provato ad eseguire fetchDataAuth mentre fuori da un ContextUser.Provider!"), + login: () => console.error("Trying to login while outside a ContextUser.Provider!"), + logout: () => console.error("Trying to logout while outside a ContextUser.Provider!"), + fetchDataAuth: () => console.error("Trying to fetchDataAuth while outside a ContextUser.Provider!"), }) export default ContextUser