admin panel from scratch

This commit is contained in:
filipriec
2025-04-16 12:56:57 +02:00
parent 055b6a0a43
commit eee12513dd
2 changed files with 7 additions and 121 deletions

View File

@@ -11,16 +11,7 @@ use ratatui::{
widgets::{Block, BorderType, Borders, List, ListItem, Paragraph, Wrap},
Frame,
};
/// Renders the view specific to admin users.
fn render_admin_panel_admin(f: &mut Frame, content_chunks: &[Rect], theme: &Theme) {
// Admin-specific view placeholder
let admin_message = Paragraph::new("Admin-specific view. Profile selection not applicable.")
.style(Style::default().fg(theme.fg))
.alignment(Alignment::Center);
// Render only in the right pane for now, leaving left empty
f.render_widget(admin_message, content_chunks[1]);
}
use super::admin_panel_admin::render_admin_panel_admin;
pub fn render_admin_panel(
f: &mut Frame,