intro page working properly well
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// src/ui/handlers/render.rs
|
||||
use crate::components::{
|
||||
render_background,
|
||||
render_command_line,
|
||||
render_background,
|
||||
render_command_line,
|
||||
render_status_line,
|
||||
handlers::sidebar::{self, calculate_sidebar_layout}
|
||||
handlers::{sidebar::{self, calculate_sidebar_layout}, intro},
|
||||
};
|
||||
use crate::config::colors::Theme;
|
||||
use ratatui::layout::{Constraint, Direction, Layout};
|
||||
@@ -23,9 +23,15 @@ pub fn render_ui(
|
||||
command_mode: bool,
|
||||
command_message: &str,
|
||||
app_state: &AppState,
|
||||
intro_state: &intro::IntroState,
|
||||
) {
|
||||
render_background(f, f.area(), theme);
|
||||
|
||||
if app_state.ui.show_intro {
|
||||
intro_state.render(f, f.area(), theme);
|
||||
return;
|
||||
}
|
||||
|
||||
let root = Layout::default()
|
||||
.direction(Direction::Vertical)
|
||||
.constraints([
|
||||
|
||||
Reference in New Issue
Block a user