diff options
Diffstat (limited to 'src/render.rs')
-rw-r--r-- | src/render.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render.rs b/src/render.rs index 8c9ce38..d1d5f19 100644 --- a/src/render.rs +++ b/src/render.rs @@ -5,11 +5,12 @@ use ratatui::{ buffer::Buffer, layout::{Alignment, Constraint, Direction, Layout, Rect}, style::Stylize, symbols::border, text::Text, widgets::{block::Title, Block, Borders, Paragraph, Widget}, Frame }; -use crate::tui; +use crate::{tui, model::Task}; -use self::footer::Footer; +use self::{footer::Footer, tasks::TaskList}; mod footer; +mod tasks; #[derive(Debug, Default)] pub struct App { @@ -61,6 +62,12 @@ impl Widget for &App { Constraint::Length(1), ]) .split(area); + TaskList::new(&vec![ + Task::new(1, 1, "Hej", "Hej med dig hvordan går det"), + Task::new(2, 1, "Lul", "Hej med dig hvordan går det"), + Task::new(3, 1, "Hvordan lige", ""), + Task::new(4, 1, "Hej med dig", ""), + ]).render(chunks[0], buf); Footer::new().render(chunks[1], buf); } } |