rename config context to menu context; move config to state
This commit is contained in:
1 parent
20c59affd7
commit
945947aa22
8 files changed
+45
-36
No files matched your search
@@ -1,4 +0,0 @@
|
||||
import { createContext } from "react"
|
||||
import config from "src/config"
|
||||
|
||||
export const ConfigContext = createContext(config)
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createContext } from "react"
|
||||
|
||||
export const menu = [
|
||||
{
|
||||
name: "Школа",
|
||||
href: "/",
|
||||
},
|
||||
]
|
||||
|
||||
export const MenuContext = createContext(menu)
|
||||
Reference in new issue
Block a user