1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

✏ Revert error messages language

This commit is contained in:
Steffo 2021-05-18 01:44:34 +02:00
parent 0eea712ae3
commit ffb726a416
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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