rename config context to menu context; move config to state

This commit is contained in:
tmshv committed 2025-08-25 23:56:35 +03:00
1 parent 20c59affd7
commit 945947aa22
8 files changed
+45 -36

No files matched your search

-4
View File
@@ -1,4 +0,0 @@
import { createContext } from "react"
import config from "src/config"
export const ConfigContext = createContext(config)
+10
View File
@@ -0,0 +1,10 @@
import { createContext } from "react"
export const menu = [
{
name: "Школа",
href: "/",
},
]
export const MenuContext = createContext(menu)