From 30ccf5659fa68c693190e05448b60ee6b4eba33d Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Fri, 29 Jan 2021 23:47:15 +0800
Subject: ...

---
 FrontEnd/src/app/views/search/index.tsx | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'FrontEnd/src/app/views/search/index.tsx')

diff --git a/FrontEnd/src/app/views/search/index.tsx b/FrontEnd/src/app/views/search/index.tsx
index 7d11d899..8aff5f01 100644
--- a/FrontEnd/src/app/views/search/index.tsx
+++ b/FrontEnd/src/app/views/search/index.tsx
@@ -7,10 +7,9 @@ import { HttpNetworkError } from "@/http/common";
 import { getHttpSearchClient } from "@/http/search";
 
 import { TimelineInfo } from "@/services/timeline";
-import { useAvatar } from "@/services/user";
 
 import SearchInput from "../common/SearchInput";
-import BlobImage from "../common/BlobImage";
+import UserAvatar from "../common/user/UserAvatar";
 
 const TimelineSearchResultItemView: React.FC<{ timeline: TimelineInfo }> = ({
   timeline,
@@ -19,8 +18,6 @@ const TimelineSearchResultItemView: React.FC<{ timeline: TimelineInfo }> = ({
     ? `users/${timeline.owner.username}`
     : `timelines/${timeline.name}`;
 
-  const avatar = useAvatar(timeline.owner.username);
-
   return (
     <div className="timeline-search-result-item my-2 p-3">
       <h4>
@@ -30,8 +27,8 @@ const TimelineSearchResultItemView: React.FC<{ timeline: TimelineInfo }> = ({
         </Link>
       </h4>
       <div>
-        <BlobImage
-          blob={avatar}
+        <UserAvatar
+          username={timeline.owner.username}
           className="timeline-search-result-item-avatar mr-2"
         />
         {timeline.owner.nickname}
-- 
cgit v1.2.3

