app: wrap template arguments in braces
To prepare for the migration to yew 1.19
This commit is contained in:
committed by
nitnelave
parent
07523219d1
commit
f44e8b7659
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user