auth dialog implemented
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user