register on the way
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user