mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-28 22:10:27 +08:00
Restructure issue page widgets
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
pub mod container;
|
||||
pub mod context;
|
||||
pub mod form;
|
||||
pub mod label;
|
||||
pub mod list;
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user