#13 cleanup frontend and widgets

This commit is contained in:
2025-08-01 19:44:55 -05:00
parent da1ecb1f21
commit 063c90d986
4 changed files with 53 additions and 44 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ use crate::{
};
pub enum RsxElement {
Element(Arc<StaticWidget>, Rsx),
Element(StaticWidget, Rsx),
DynElement(
Box<dyn FnMut() -> WidgetLoad + Send + Sync>,
@@ -68,7 +68,7 @@ impl Rsx {
));
}
pub fn create_element_static(&mut self, element: Arc<StaticWidget>, children: Rsx) {
pub fn create_element_static(&mut self, element: StaticWidget, children: Rsx) {
self.0.push(RsxElement::Element(element, children));
}