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,12 +1,12 @@
|
||||
import s from "./contacts.module.css"
|
||||
|
||||
import { useContext } from "react"
|
||||
import { ConfigContext } from "src/context/ConfigContext"
|
||||
import Link from "next/link"
|
||||
import { Title } from "@/ui/Title"
|
||||
import { useSnapshot } from "valtio"
|
||||
import { state } from "@/store/config"
|
||||
|
||||
export const Contacts: React.FC = props => {
|
||||
const { contacts } = useContext(ConfigContext)
|
||||
const { contacts } = useSnapshot(state)
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user