From 1f70c65eb0d20eb070b72d4e67966c1f7b79c02a Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 13 Feb 2021 14:51:28 +0800
Subject: ...

---
 FrontEnd/src/app/views/search/index.tsx | 11 +++++------
 1 file changed, 5 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 41f1e6b6..8401f26c 100644
--- a/FrontEnd/src/app/views/search/index.tsx
+++ b/FrontEnd/src/app/views/search/index.tsx
@@ -6,15 +6,14 @@ import { Link } from "react-router-dom";
 
 import { HttpNetworkError } from "@/http/common";
 import { getHttpSearchClient } from "@/http/search";
-
-import { TimelineInfo } from "@/services/timeline";
+import { HttpTimelineInfo } from "@/http/timeline";
 
 import SearchInput from "../common/SearchInput";
 import UserAvatar from "../common/user/UserAvatar";
 
-const TimelineSearchResultItemView: React.FC<{ timeline: TimelineInfo }> = ({
-  timeline,
-}) => {
+const TimelineSearchResultItemView: React.FC<{
+  timeline: HttpTimelineInfo;
+}> = ({ timeline }) => {
   const link = timeline.name.startsWith("@")
     ? `users/${timeline.owner.username}`
     : `timelines/${timeline.name}`;
@@ -51,7 +50,7 @@ const SearchPage: React.FC = () => {
 
   const [searchText, setSearchText] = React.useState<string>("");
   const [state, setState] = React.useState<
-    TimelineInfo[] | "init" | "loading" | "network-error" | "error"
+    HttpTimelineInfo[] | "init" | "loading" | "network-error" | "error"
   >("init");
 
   const [forceResearchKey, setForceResearchKey] = React.useState<number>(0);
-- 
cgit v1.2.3

