new renderer for newsfeed

This commit is contained in:
Ren Amamiya
2023-04-26 14:53:04 +07:00
parent 9d635d472e
commit 7a2e08f601
9 changed files with 266 additions and 212 deletions

View File

@@ -83,7 +83,7 @@ export default function EventCollector() {
event.tags,
event.content,
event.created_at,
''
event.id
);
break;
default:

View File

@@ -10,7 +10,6 @@ export const Placeholder = () => {
<span className="text-zinc-500">·</span>
<div className="h-4 w-12 rounded bg-zinc-700" />
</div>
<div className="h-3 w-3 rounded-full bg-zinc-700" />
</div>
</div>
</div>

View File

@@ -8,7 +8,7 @@ export const NoteQuoteRepost = memo(function NoteQuoteRepost({ event }: { event:
const rootNote = () => {
let note = null;
if (event.content.length > 0) {
if (event.content) {
const content = destr(event.content);
if (content) {
note = <RootNote event={content} />;