auth dialog implemented

This commit is contained in:
filipriec
2025-03-30 20:38:09 +02:00
parent f6e21b6a61
commit e19b30f4f4
6 changed files with 165 additions and 6 deletions

View File

@@ -47,7 +47,14 @@ pub fn render_ui(
// Use app_state's intro_state directly
app_state.ui.intro_state.render(f, main_content_area, theme);
}else if app_state.ui.show_login {
render_login(f, main_content_area, theme, auth_state, !auth_state.return_selected);
render_login(
f,
main_content_area,
theme,
auth_state,
app_state, // Add AppState reference here
auth_state.current_field < 2
);
} else if app_state.ui.show_admin {
// Create temporary AdminPanelState for rendering
let mut admin_state = AdminPanelState::new(