new renderer for newsfeed
This commit is contained in:
@@ -83,7 +83,7 @@ export default function EventCollector() {
|
||||
event.tags,
|
||||
event.content,
|
||||
event.created_at,
|
||||
''
|
||||
event.id
|
||||
);
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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} />;
|
||||
|
||||
Reference in New Issue
Block a user