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:
committed by
William Casarin
parent
17d0c97c78
commit
88a3a2d088
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user