From fe5128137f530daf8ca315cb89811121c6c2c9da Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 13 Feb 2021 21:23:30 +0800 Subject: ... --- FrontEnd/src/app/views/common/user/UserAvatar.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'FrontEnd/src/app/views/common/user') diff --git a/FrontEnd/src/app/views/common/user/UserAvatar.tsx b/FrontEnd/src/app/views/common/user/UserAvatar.tsx index 73273298..9e822528 100644 --- a/FrontEnd/src/app/views/common/user/UserAvatar.tsx +++ b/FrontEnd/src/app/views/common/user/UserAvatar.tsx @@ -1,8 +1,6 @@ import React from "react"; -import { useAvatar } from "@/services/user"; - -import BlobImage from "../BlobImage"; +import { getHttpUserClient } from "@/http/user"; export interface UserAvatarProps extends React.ImgHTMLAttributes { @@ -10,9 +8,12 @@ export interface UserAvatarProps } const UserAvatar: React.FC = ({ username, ...otherProps }) => { - const avatar = useAvatar(username); - - return ; + return ( + + ); }; export default UserAvatar; -- cgit v1.2.3