basic working version of approval screen

This commit is contained in:
jfmonty2 committed 2026-11-23 14:35:37 -05:00
1 parent 49c1e81e1d
commit 5f1ff5e4e8
9 files changed
+174 -24

No files matched your search

+3 -1
View File
@@ -1,11 +1,13 @@
use gpui_kit::{Context, Global};
mod approval;
mod credentials;
mod home;
mod unlock;
mod welcome;
use crate::app::CreddyApp;
pub use approval::ApprovalScreen;
pub use credentials::CredentialsScreen;
pub use home::HomeScreen;
pub use unlock::UnlockScreen;
@@ -35,7 +37,7 @@ impl Screen {
// therwise if locked, ask for unlock
AppSession::Locked => Screen::Unlock,
// otherwise, fall back to "current screen" global
AppSession::Unlocked{ .. } => *cx.global::<Screen>(),
AppSession::Unlocked(_) => *cx.global::<Screen>(),
}
}
}