🚚 Renombra add_component por add_child

This commit is contained in:
Manuel Cillero 2025-10-18 21:33:29 +02:00
parent 180cb9c2f6
commit 769eb384e4
12 changed files with 31 additions and 32 deletions

View file

@ -71,7 +71,7 @@ impl Block {
}
/// Añade un nuevo componente hijo al bloque.
pub fn add_component(mut self, component: impl Component) -> Self {
pub fn add_child(mut self, component: impl Component) -> Self {
self.children
.alter_child(ChildOp::Add(Child::with(component)));
self