app: wrap template arguments in braces

To prepare for the migration to yew 1.19
This commit is contained in:
Valentin Tolmer
2023-03-08 14:27:47 +01:00
committed by nitnelave
parent 07523219d1
commit f44e8b7659
19 changed files with 153 additions and 135 deletions

View File

@@ -60,10 +60,11 @@ impl Component for LogoutButton {
}
fn view(&self) -> Html {
let link = &self.common;
html! {
<button
class="dropdown-item"
onclick=self.common.callback(|_| Msg::LogoutRequested)>
onclick={link.callback(|_| Msg::LogoutRequested)}>
{"Logout"}
</button>
}