Skip to content

Commit

Permalink
Merge pull request #174 from musehq/dev
Browse files Browse the repository at this point in the history
v2.12.2
  • Loading branch information
spacesvr authored May 11, 2023
2 parents 14bb8bf + f490bf6 commit 7126b12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/layers/Environment/ui/PauseMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions src/logic/toggle.ts
Original file line number Diff line number Diff line change
@@ -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<Timeout | null>(null);
const timeoutId = useRef<any>(null);
const [active, setActiveState] = useState(false);

const setActive = useCallback(() => {
Expand Down

1 comment on commit 7126b12

@vercel
Copy link

@vercel vercel bot commented on 7126b12 May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.