diff --git a/app/src/components/app.rs b/app/src/components/app.rs index 3262774..5d5ad0b 100644 --- a/app/src/components/app.rs +++ b/app/src/components/app.rs @@ -1,6 +1,6 @@ use crate::{ components::{ - avatar::Avatar, + avatar::ShowAvatar, change_password::ChangePasswordForm, create_group::CreateGroupForm, create_user::CreateUserForm, @@ -307,7 +307,7 @@ impl App { id="dropdownUser" data-bs-toggle="dropdown" aria-expanded="false"> - + {user_id} diff --git a/app/src/components/avatar.rs b/app/src/components/avatar.rs index 9689798..d652bbe 100644 --- a/app/src/components/avatar.rs +++ b/app/src/components/avatar.rs @@ -26,7 +26,7 @@ impl AvatarData { } } -pub struct Avatar { +pub struct ShowAvatar { common: CommonComponentParts, avatar: Option, _producer: Box>, @@ -47,7 +47,7 @@ pub struct Props { pub height: i32, } -impl CommonComponent for Avatar { +impl CommonComponent for ShowAvatar { fn handle_msg( &mut self, ctx: &Context, @@ -77,7 +77,7 @@ impl CommonComponent for Avatar { } } -impl Avatar { +impl ShowAvatar { fn get_user_avatar(&mut self, ctx: &Context) { self.common.call_graphql::( ctx, @@ -90,7 +90,7 @@ impl Avatar { } } -impl Component for Avatar { +impl Component for ShowAvatar { type Message = Msg; type Properties = Props;