Restructure issue page widgets

This commit is contained in:
Erik Kundt
2023-08-11 11:43:54 +02:00
parent 0ed7bb61e4
commit cb2490745e
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
pub mod container;
pub mod context;
pub mod form;
pub mod label;
pub mod list;
+28
View File
@@ -0,0 +1,28 @@
use std::collections::HashMap;
use tuirealm::command::{CmdResult, Cmd};
use tuirealm::tui::layout::Rect;
use tuirealm::{MockComponent, Props, Frame, State};
use crate::ui::widget::WidgetComponent;
struct Form {
inputs: HashMap<String, Box<dyn MockComponent>>,
}
impl Form {
}
impl WidgetComponent for Form {
fn view(&mut self, _properties: &Props, _frame: &mut Frame, _area: Rect) {}
fn state(&self) -> State {
State::None
}
fn perform(&mut self, _properties: &Props, _cmd: Cmd) -> CmdResult {
CmdResult::None
}
}