register on the way

This commit is contained in:
filipriec
2025-04-10 18:50:54 +02:00
parent 4e01740a61
commit b51e76e366
6 changed files with 276 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ use crate::components::{
handlers::sidebar::{self, calculate_sidebar_layout},
form::form::render_form,
admin::{admin_panel::AdminPanelState},
auth::login::render_login,
auth::{login::render_login, register::render_register},
};
use crate::config::colors::themes::Theme;
use ratatui::layout::{Constraint, Direction, Layout};
@@ -29,7 +29,6 @@ pub fn render_ui(
command_mode: bool,
command_message: &str,
app_state: &AppState,
// intro_state parameter removed
) {
render_background(f, f.area(), theme);
@@ -52,7 +51,7 @@ pub fn render_ui(
main_content_area,
theme,
auth_state,
app_state, // Add AppState reference here
app_state,
auth_state.current_field < 2
);
} else if app_state.ui.show_admin {