updated reaction component

This commit is contained in:
Ren Amamiya
2023-03-16 21:29:57 +07:00
parent 096ff38a08
commit f71eabc5c4
8 changed files with 101 additions and 231 deletions

View File

@@ -1,5 +1,6 @@
import { ImageCard } from '@components/note/content/preview/imageCard';
import { Video } from '@components/note/content/preview/video';
import { Reaction } from '@components/note/reaction';
import { UserExtend } from '@components/user/extend';
import dynamic from 'next/dynamic';
@@ -42,7 +43,7 @@ export const Content = memo(function Content({ data }: { data: any }) {
// add video to preview
setPreview({ url: parseURL.href, type: 'video' });
content.current = content.current.replace(parseURL.href, '');
} // #TODO: support multiple previ3ew
} // #TODO: support multiple preview
}
}, [urls]);
@@ -85,12 +86,9 @@ export const Content = memo(function Content({ data }: { data: any }) {
</div>
<>{previewAttachment()}</>
</div>
{/*
<div className="relative z-10 -ml-1 flex items-center gap-8">
<Reply eventID={data.id} />
<Reaction eventID={data.id} eventPubkey={data.pubkey} />
</div>
*/}
</div>
</div>
</div>