displaying register

This commit is contained in:
filipriec
2025-04-10 20:01:03 +02:00
parent 5f5d690ff3
commit a9089bc2ff
3 changed files with 38 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
// src/tui/functions/common/login.rs
use crate::services::auth::AuthClient;
use crate::state::pages::auth::AuthState;
use crate::state::state::AppState;

View File

@@ -17,6 +17,12 @@ pub fn handle_intro_selection(app_state: &mut AppState, index: usize) { // Add i
app_state.ui.show_admin = false;
app_state.ui.show_login = true;
}
3 => { // Register
app_state.ui.show_intro = false;
app_state.ui.show_register = true;
app_state.ui.focus_outside_canvas = false;
app_state.general.selected_item = 0;
}
_ => {}
}
app_state.ui.show_intro = false;