auth not working with canvas crate yet
This commit is contained in:
@@ -16,7 +16,8 @@ use crate::components::{
|
||||
};
|
||||
use crate::config::colors::themes::Theme;
|
||||
use crate::modes::general::command_navigation::NavigationState;
|
||||
use crate::state::pages::canvas_state::CanvasState;
|
||||
use crate::state::pages::canvas_state::CanvasState as LocalCanvasState; // Keep local one with alias
|
||||
use canvas::canvas::CanvasState; // Import external library's CanvasState trait
|
||||
use crate::state::app::buffer::BufferState;
|
||||
use crate::state::app::highlight::HighlightState as LocalHighlightState; // CHANGED: Alias local version
|
||||
use canvas::canvas::HighlightState as CanvasHighlightState; // CHANGED: Import canvas version with alias
|
||||
@@ -136,7 +137,7 @@ pub fn render_ui(
|
||||
theme,
|
||||
register_state,
|
||||
app_state,
|
||||
register_state.current_field() < 4,
|
||||
register_state.current_field() < 4, // Now using CanvasState trait method
|
||||
highlight_state, // Uses local version
|
||||
);
|
||||
} else if app_state.ui.show_add_table {
|
||||
@@ -166,7 +167,7 @@ pub fn render_ui(
|
||||
theme,
|
||||
login_state,
|
||||
app_state,
|
||||
login_state.current_field() < 2,
|
||||
login_state.current_field() < 2, // Now using CanvasState trait method
|
||||
highlight_state, // Uses local version
|
||||
);
|
||||
} else if app_state.ui.show_admin {
|
||||
@@ -208,7 +209,7 @@ pub fn render_ui(
|
||||
])
|
||||
.split(form_actual_area)[1]
|
||||
};
|
||||
|
||||
|
||||
// CHANGED: Convert local HighlightState to canvas HighlightState for FormState
|
||||
let canvas_highlight_state = convert_highlight_state(highlight_state);
|
||||
form_state.render(
|
||||
|
||||
Reference in New Issue
Block a user