diff --git a/src/search.tsx b/src/search.tsx index 1494c2b..1805db2 100644 --- a/src/search.tsx +++ b/src/search.tsx @@ -1,7 +1,6 @@ import { IDBPDatabase } from "idb"; import { ChatStore } from "./app"; -import { useState } from "react"; -import { StateUpdater, useRef } from "preact/hooks"; +import { StateUpdater, useRef, useState } from "preact/hooks"; interface ChatStoreSearchResult { key: IDBValidKey; @@ -151,7 +150,7 @@ export default function Search(props: {
{searchResult .slice(pageIndex * 10, (pageIndex + 1) * 10) - .map((result) => { + .map((result: ChatStoreSearchResult) => { return (