mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-25 14:34:19 +00:00
✏ Revert error messages language
This commit is contained in:
parent
0eea712ae3
commit
ffb726a416
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue