we successfully compiled and wen from auth state to login state and auth state
This commit is contained in:
@@ -14,6 +14,7 @@ use ratatui::layout::{Constraint, Direction, Layout};
|
||||
use ratatui::Frame;
|
||||
use crate::state::pages::form::FormState;
|
||||
use crate::state::pages::auth::AuthState;
|
||||
use crate::state::pages::auth::LoginState;
|
||||
use crate::state::pages::auth::RegisterState;
|
||||
use crate::state::state::AppState;
|
||||
|
||||
@@ -21,6 +22,7 @@ pub fn render_ui(
|
||||
f: &mut Frame,
|
||||
form_state: &mut FormState,
|
||||
auth_state: &mut AuthState,
|
||||
login_state: &LoginState,
|
||||
register_state: &RegisterState,
|
||||
theme: &Theme,
|
||||
is_edit_mode: bool,
|
||||
@@ -60,9 +62,9 @@ pub fn render_ui(
|
||||
f,
|
||||
main_content_area,
|
||||
theme,
|
||||
auth_state,
|
||||
login_state,
|
||||
app_state,
|
||||
auth_state.current_field < 2
|
||||
login_state.current_field < 2
|
||||
);
|
||||
} else if app_state.ui.show_admin {
|
||||
// Create temporary AdminPanelState for rendering
|
||||
|
||||
Reference in New Issue
Block a user