Refactor imports and comment out unused useRef for clarity in Home component

This commit is contained in:
2025-05-28 23:26:23 +02:00
parent 263f7a2173
commit b12d36898e

View File

@@ -1,13 +1,13 @@
"use client"
import { useRef, useState } from "react"
import { dateToUnix, useNostrEvents } from "nostr-react"
import { useState } from "react"
import { useNostrEvents } from "nostr-react"
import AudioBubble from "@/components/audio-bubble"
import VoidCanvas from "@/components/void-canvas"
import AudioPlayer from "@/components/audio-player"
export default function Home() {
const now = useRef(new Date()) // Make sure current time isn't re-rendered
// const now = useRef(new Date()) // Make sure current time isn't re-rendered
const [selectedAudio, setSelectedAudio] = useState<string | null>(null)
const [playingEventId, setPlayingEventId] = useState<string | null>(null)