aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/search/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/app/views/search/index.tsx')
-rw-r--r--FrontEnd/src/app/views/search/index.tsx11
1 files changed, 5 insertions, 6 deletions
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);