HARDEST COMMIT IN THE RECENT TIMES we fixed movement in the admin page

This commit is contained in:
filipriec
2025-08-28 13:43:17 +02:00
parent e142f56706
commit 6e221ef8c1
4 changed files with 11 additions and 55 deletions

View File

@@ -67,7 +67,7 @@ pub fn render_admin_panel(
/// Renders the view for non-admin users (profile list and details).
fn render_admin_panel_non_admin(
f: &mut Frame,
admin_state: &AdminState,
admin_state: &mut AdminState,
content_chunks: &[Rect],
theme: &Theme,
profile_tree: &ProfileTreeResponse,
@@ -92,7 +92,7 @@ fn render_admin_panel_non_admin(
.block(Block::default().title("Profiles"))
.highlight_style(Style::default().bg(theme.highlight).fg(theme.bg));
f.render_stateful_widget(list, content_chunks[0], &mut admin_state.profile_list_state.clone());
f.render_stateful_widget(list, content_chunks[0], &mut admin_state.profile_list_state);
// Profile details - Use selection info from admin_state
if let Some(profile) = admin_state