move WalletState to UI
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ pub use unknowns::{get_unknown_note_ids, NoteRefsUnkIdAction, SingleUnkIdAction,
|
||||
pub use urls::{supported_mime_hosted_at_url, SupportedMimeType, UrlMimes};
|
||||
pub use user_account::UserAccount;
|
||||
pub use wallet::{
|
||||
get_wallet_for_mut, GlobalWallet, Wallet, WalletError, WalletState, WalletType, WalletUIState,
|
||||
get_wallet_for_mut, GlobalWallet, Wallet, WalletError, WalletType, WalletUIState,
|
||||
};
|
||||
pub use zaps::{
|
||||
AnyZapState, NoteZapTarget, NoteZapTargetOwned, ZapTarget, ZapTargetOwned, ZappingError,
|
||||
|
||||
@@ -10,18 +10,6 @@ use tokio::sync::RwLock;
|
||||
|
||||
use crate::{Accounts, DataPath, TokenHandler};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum WalletState<'a> {
|
||||
Wallet {
|
||||
wallet: &'a mut Wallet,
|
||||
can_create_local_wallet: bool,
|
||||
},
|
||||
NoWallet {
|
||||
state: &'a mut WalletUIState,
|
||||
show_local_only: bool,
|
||||
},
|
||||
}
|
||||
|
||||
pub fn get_wallet_for_mut<'a>(
|
||||
accounts: &'a mut Accounts,
|
||||
global_wallet: &'a mut GlobalWallet,
|
||||
|
||||
Reference in New Issue
Block a user