🍻 Tercera revista a las traducciones por contexto

This commit is contained in:
Manuel Cillero 2023-05-27 22:44:12 +02:00
parent 88d6ce2a72
commit dd443ca375
21 changed files with 415 additions and 252 deletions

View file

@ -1,7 +1,5 @@
use pagetop::prelude::*;
use crate::component::Html;
define_handle!(COMPONENT_PARAGRAPH);
#[derive(Default)]
@ -65,8 +63,8 @@ impl ComponentTrait for Paragraph {
}
impl Paragraph {
pub fn with(html: Markup) -> Self {
Paragraph::new().with_component(Html::with(html))
pub fn with(component: impl ComponentTrait) -> Self {
Paragraph::new().with_component(component)
}
// Paragraph BUILDER.