re-enabled note metadata

This commit is contained in:
Ren Amamiya 2023-03-27 21:17:54 +07:00
parent 49f716a7d4
commit a3ff254bc3

View File

@ -4,7 +4,6 @@ import { RelayContext } from '@components/relaysProvider';
import { relaysAtom } from '@stores/relays'; import { relaysAtom } from '@stores/relays';
import { dateToUnix } from '@utils/getDate';
import { createCacheCommentNote } from '@utils/storage'; import { createCacheCommentNote } from '@utils/storage';
import { useAtomValue } from 'jotai'; import { useAtomValue } from 'jotai';
@ -27,7 +26,6 @@ export default function NoteMetadata({
const [likes, setLikes] = useState(0); const [likes, setLikes] = useState(0);
const [comments, setComments] = useState(0); const [comments, setComments] = useState(0);
/*
useEffect(() => { useEffect(() => {
const unsubscribe = pool.subscribe( const unsubscribe = pool.subscribe(
[ [
@ -67,7 +65,6 @@ export default function NoteMetadata({
unsubscribe; unsubscribe;
}; };
}, [eventID, eventTime, pool, relays]); }, [eventID, eventTime, pool, relays]);
*/
return ( return (
<div className="relative z-10 -ml-1 flex items-center gap-8"> <div className="relative z-10 -ml-1 flex items-center gap-8">