diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 9783729..a3f9297 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -24,6 +24,8 @@ import logo from '../imgs/chat-icon.svg'; import './Avatar.scss'; +const AVATAR_SIZE = 60; + interface IProps { className?: string; avatarUrl: string; @@ -58,12 +60,19 @@ export const UserAvatar: React.FC = ({ user, userId, }: IPropsUserAvatar) => { - const [hs] = useHSs({identifier: userId}); - return ; -} + const [hs] = useHSs({ identifier: userId }); + return ( + + ); +}; interface IPropsRoomAvatar { room: Room; @@ -72,12 +81,19 @@ interface IPropsRoomAvatar { export const RoomAvatar: React.FC = ({ room, }: IPropsRoomAvatar) => { - const [hs] = useHSs({identifier: room.room_id}); - return ; -} + const [hs] = useHSs({ identifier: room.room_id }); + return ( + + ); +}; interface IPropsGroupAvatar { group: Group; @@ -88,11 +104,18 @@ export const GroupAvatar: React.FC = ({ group, groupId, }: IPropsGroupAvatar) => { - const [hs] = useHSs({identifier: groupId}); - return ; -} + const [hs] = useHSs({ identifier: groupId }); + return ( + + ); +}; export default Avatar;