move WalletState to UI
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
1 parent
9e21518e4b
commit
015e7790d0
4 files changed
+16
-16
No files matched your search
@@ -1,10 +1,22 @@
|
||||
use egui::Layout;
|
||||
use notedeck::{Accounts, GlobalWallet, Wallet, WalletError, WalletState, WalletUIState};
|
||||
use notedeck::{Accounts, GlobalWallet, Wallet, WalletError, WalletUIState};
|
||||
|
||||
use crate::route::{Route, Router};
|
||||
|
||||
use super::widgets::styled_button;
|
||||
|
||||
#[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,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum WalletAction {
|
||||
SaveURI,
|
||||
|
||||
Reference in new issue
Block a user