diff --git a/components/Navigation/Navigation.tsx b/components/Navigation/Navigation.tsx index 8554d2c..2abc410 100644 --- a/components/Navigation/Navigation.tsx +++ b/components/Navigation/Navigation.tsx @@ -2,7 +2,7 @@ import styles from "./Navigation.module.scss"; import { GractwoLogo } from "../Logo"; import Link from "next/link"; -import config from "../../data/config.json"; +import navigation from "../../data/navigation.json"; const Navigation = () => { let username: string = ""; @@ -10,7 +10,7 @@ const Navigation = () => { <>
- {config.navigation.map((navlink) => { + {navigation.map((navlink) => { return ( { nawigacja {/* TUTAJ WSTAWIĆ IKONKĘ PÓŹNIEJ */}
- {config.navigation.map((navlink) => { + {navigation.map((navlink) => { return ( { const [splash, setSplash] = useState(""); function randomizeSplash(): void { - setSplash( - config.splashes[Math.floor(Math.random() * config.splashes.length)].body - ); + setSplash(splashes[Math.floor(Math.random() * splashes.length)].body); } useEffect(() => { randomizeSplash();