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

+3 -3
View File
@@ -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 (
<>