move test account creation & apply to global popup

Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
kernelkind
2024-05-17 11:47:43 -04:00
committed by William Casarin
parent 17d0c97c78
commit 88a3a2d088
3 changed files with 41 additions and 38 deletions

View File

@@ -91,6 +91,7 @@ impl<'a> DesktopGlobalPopup<'a> {
mod preview {
use crate::{
test_data::get_test_accounts,
ui::{DesktopSidePanel, Preview, View},
Damus,
};
@@ -111,9 +112,9 @@ mod preview {
impl GlobalPopupPreview {
fn new() -> Self {
GlobalPopupPreview {
app: Damus::mock("."),
}
let mut app = Damus::mock(".");
app.accounts = get_test_accounts();
GlobalPopupPreview { app }
}
}