From e8a08e2a237ef3a8894af594287eb494d91e8610 Mon Sep 17 00:00:00 2001 From: OFF0 Date: Sat, 7 Jan 2023 09:07:42 +0100 Subject: [PATCH] wip --- src/main.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main.js b/src/main.js index 0009260..961b098 100644 --- a/src/main.js +++ b/src/main.js @@ -442,10 +442,7 @@ function createTextNote(evt, relay) { ...content, (firstLink && validatePow(evt)) ? linkPreview(firstLink, evt.id, relay) : '', ]), - elem('button', { - className: 'btn-inline', name: 'star', type: 'button', - data: {'eventId': evt.id, relay}, - }, [ + elem('button', {className: 'btn-inline', name: 'star', type: 'button'}, [ elem('img', { alt: didReact ? '✭' : '✩', // ♥ height: 24, width: 24, @@ -454,10 +451,9 @@ function createTextNote(evt, relay) { }), elem('small', {data: {reactions: evt.id}}, hasReactions ? reactionMap[evt.id].length : ''), ]), - elem('button', { - className: 'btn-inline', name: 'reply', type: 'button', - data: {'eventId': evt.id, relay}, - }, [elem('img', {height: 24, width: 24, src: 'assets/comment.svg'})]), + elem('button', {className: 'btn-inline', name: 'reply', type: 'button'}, [ + elem('img', {height: 24, width: 24, src: 'assets/comment.svg'}) + ]), // replies[0] ? elem('div', {className: 'mobx-replies'}, replyFeed.reverse()) : '', ]); if (restoredReplyTo === evt.id) {