add launch_cfg_with_props to tui (#682)

This commit is contained in:
Demonthos authored and GitHub committed 2022-12-27 08:30:08 -06:00
1 parent 4aac2cdae1
commit 2444c5333f
2 files changed
+10 -98

No files matched your search

+5 -1
View File
@@ -75,7 +75,11 @@ pub fn launch(app: Component<()>) {
}
pub fn launch_cfg(app: Component<()>, cfg: Config) {
let mut dom = VirtualDom::new(app);
launch_cfg_with_props(app, (), cfg);
}
pub fn launch_cfg_with_props<Props: 'static>(app: Component<Props>, props: Props, cfg: Config) {
let mut dom = VirtualDom::new_with_props(app, props);
let (handler, state, register_event) = RinkInputHandler::new();