diff --git a/package.json b/package.json index c4a6476..ec8abb7 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "spacesvr", - "version": "2.12.1", + "version": "2.12.2", "private": true, "description": "A standardized reality for future of the 3D Web", "keywords": [ diff --git a/src/layers/Environment/ui/PauseMenu/index.tsx b/src/layers/Environment/ui/PauseMenu/index.tsx index 20a1195..5d48de5 100644 --- a/src/layers/Environment/ui/PauseMenu/index.tsx +++ b/src/layers/Environment/ui/PauseMenu/index.tsx @@ -40,7 +40,7 @@ export default function PauseMenu(props: PauseMenuProps) { const PAUSE_ITEMS: MenuItem[] = [ ...pauseMenuItems, { - text: "v2.12.1", + text: "v2.12.2", link: "https://www.npmjs.com/package/spacesvr", }, ...menuItems, diff --git a/src/logic/toggle.ts b/src/logic/toggle.ts index e19f44b..9a08041 100644 --- a/src/logic/toggle.ts +++ b/src/logic/toggle.ts @@ -1,12 +1,11 @@ import { useCallback, useEffect, useRef, useState } from "react"; -import Timeout = NodeJS.Timeout; /** * A hook that allows you to toggle a boolean value. * @param delay time in ms */ export const useDelayedToggle = (delay = 1000) => { - const timeoutId = useRef(null); + const timeoutId = useRef(null); const [active, setActiveState] = useState(false); const setActive = useCallback(() => {