Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-04-01 21:58:23 -04:00
parent cbf281dcc1
commit 18ea05db0a
8 changed files with 18 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ use egui::{Button, Color32, Hyperlink, Image, Response, RichText, Sense, Window}
use nostrdb::{BlockType, Mention, Ndb, Note, NoteKey, Transaction};
use tracing::warn;
use notedeck::{supported_mime_hosted_at_url, Images, MediaCacheType, NoteCache};
use notedeck::{supported_mime_hosted_at_url, Images, MediaCacheType, NoteCache, Zaps};
/// Aggregates dependencies to reduce the number of parameters
/// passed to inner UI elements, minimizing prop drilling.
@@ -17,6 +17,7 @@ pub struct NoteContext<'d> {
pub ndb: &'d Ndb,
pub img_cache: &'d mut Images,
pub note_cache: &'d mut NoteCache,
pub zaps: &'d mut Zaps,
}
pub struct NoteContents<'a, 'd> {

View File

@@ -732,6 +732,7 @@ mod preview {
ndb: app.ndb,
img_cache: app.img_cache,
note_cache: app.note_cache,
zaps: app.zaps,
};
PostView::new(