mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-06 02:31:16 +02:00
Feature: Display Improvements (#40)
* refactor: improve event rendering logic and add no posts found message * fix errors
This commit is contained in:
@@ -22,6 +22,10 @@ interface QuickViewKind20NoteCardProps {
|
||||
}
|
||||
|
||||
const QuickViewKind20NoteCard: React.FC<QuickViewKind20NoteCardProps> = ({ pubkey, text, image, eventId, tags, event, linkToNote }) => {
|
||||
const {data, isLoading} = useProfile({
|
||||
pubkey,
|
||||
});
|
||||
|
||||
if (!image) return null;
|
||||
|
||||
text = text.replaceAll('\n', ' ');
|
||||
@@ -29,10 +33,6 @@ const QuickViewKind20NoteCard: React.FC<QuickViewKind20NoteCardProps> = ({ pubke
|
||||
|
||||
const { width, height } = extractDimensions(event);
|
||||
|
||||
const {data, isLoading} = useProfile({
|
||||
pubkey,
|
||||
});
|
||||
|
||||
const card = (
|
||||
<Card className="aspect-square">
|
||||
<SmallCardContent className="h-full p-0">
|
||||
|
||||
Reference in New Issue
Block a user