diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index d5df2ec..58d6f34 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -5,12 +5,11 @@ import HamburgerSVG from '../svgs/hamburgerSVG' import CloseSVG from '../svgs/closeSVG' export default function Navbar() { - const { myClockSpeed, setMyClockSpeed, myDateTimeRef } = useAppContext() + const { myClockSpeed, setMyClockSpeed, myDateTimeRef, hideShips, setHideShips } = useAppContext() const [opened, setOpened] = useState(false) const [localClock, setLocalClock] = useState(myDateTimeRef.current) const [localSpeed, setLocalSpeed] = useState(myClockSpeed.toString()) const convertedMyDateTime = `${localClock.getFullYear()}-${(localClock.getMonth() + 1).toString().padStart(2, '0')}-${localClock.getDate().toString().padStart(2, '0')}T${localClock.getHours().toString().padStart(2, '0')}:${localClock.getMinutes().toString().padStart(2, '0')}` - useEffect(() => { function updateLocalClock() { setLocalClock(myDateTimeRef.current) @@ -54,7 +53,7 @@ export default function Navbar() { id="settings-container" className="absolute left-[101%] top-0 bg-gray-700 opacity-90 text-white flex flex-col gap-4 p-4 min-w-96 rounded-lg shadow-lg" > -

Simulation settings

+

Settings

+
+ Hide vessels when showing path + +
)}