summaryrefslogtreecommitdiffstats
path: root/src/components/chat_header.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/chat_header.rs')
-rw-r--r--src/components/chat_header.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/chat_header.rs b/src/components/chat_header.rs
index fe4e8d9..47367dc 100644
--- a/src/components/chat_header.rs
+++ b/src/components/chat_header.rs
@@ -12,15 +12,11 @@ pub fn ChatViewHeader(chat: MacawChat) -> impl IntoView {
view! {
<div class="chat-view-header panel">
{move || {
- view! {
- <AvatarWithPresence user=chat.user />
- }
- }}
- <div class="user-info">
+ view! { <AvatarWithPresence user=chat.user /> }
+ }} <div class="user-info">
<h2 class="name">{name}</h2>
<h3>{jid}</h3>
</div>
</div>
}
}
-