Refactor imports and comment out unused useRef
for clarity in Home component
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user