diff --git a/Cargo.toml b/Cargo.toml index ec517d0..b9710df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ chrono = { version = "0.4", features = ["unstable-locales"] } yew = { version = "0.21" } yew-router = { version = "0.18" } -yew-alt-html = { version = "0.4" } yew-hooks = { version = "0.3", optional = true } wasm-bindgen-futures = { version = "0.4", optional = true } diff --git a/src/components/author_card.rs b/src/components/author_card.rs index eed4dad..5fe5c19 100644 --- a/src/components/author_card.rs +++ b/src/components/author_card.rs @@ -160,16 +160,15 @@ pub fn author_card(props: &AuthorCardProps) -> Html {
- { "Email: " } if let Some(author) = author.as_ref() { { if author.blocked == 1 { - "(скрыт)".to_owned() + "(Email скрыт)".to_owned() } else { author.email .clone() .none_if_empty() - .unwrap_or("(не указан)".to_owned()) + .unwrap_or("(Email не указан)".to_owned()) } } } else { @@ -202,6 +201,7 @@ pub fn author_card(props: &AuthorCardProps) -> Html { }; + html! {