app: Simplify some CommonComponent uses

This commit is contained in:
Valentin Tolmer
2021-10-31 23:42:19 +09:00
committed by nitnelave
parent 12dfa60eed
commit d60f5ab460
8 changed files with 39 additions and 41 deletions

View File

@@ -30,7 +30,7 @@ impl CommonComponent<LogoutButton> for LogoutButton {
Msg::LogoutCompleted(res) => {
res?;
delete_cookie("user_id")?;
self.common.props.on_logged_out.emit(());
self.common.on_logged_out.emit(());
}
}
Ok(false)