disabled global newsfeed and reply, reaction count
This commit is contained in:
@@ -19,6 +19,7 @@ export default function Reaction({ eventID, eventPubkey }: { eventID: string; ev
|
||||
const pubkey = currentUser.pubkey;
|
||||
const privkey = currentUser.privkey;
|
||||
|
||||
/*
|
||||
relayPool.subscribe(
|
||||
[
|
||||
{
|
||||
@@ -31,7 +32,7 @@ export default function Reaction({ eventID, eventPubkey }: { eventID: string; ev
|
||||
relays,
|
||||
(event: any) => {
|
||||
if (event.content === '🤙' || event.content === '+') {
|
||||
//setReaction(reaction + 1);
|
||||
setReaction(reaction + 1);
|
||||
}
|
||||
},
|
||||
undefined,
|
||||
@@ -39,6 +40,7 @@ export default function Reaction({ eventID, eventPubkey }: { eventID: string; ev
|
||||
console.log(events, relayURL);
|
||||
}
|
||||
);
|
||||
*/
|
||||
|
||||
const handleReaction = (e: any) => {
|
||||
e.stopPropagation();
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
import { ChatBubbleIcon } from '@radix-ui/react-icons';
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function Reply({ eventID }: { eventID: string }) {
|
||||
console.log(eventID);
|
||||
export default function Reply() {
|
||||
const [count] = useState(0);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user