diff options
| author | Saatvik Arya <[email protected]> | 2024-07-24 22:14:15 -0700 |
|---|---|---|
| committer | Saatvik Arya <[email protected]> | 2024-07-25 13:08:40 -0700 |
| commit | 04e57ccf80a9fdca045eb5782dc9f520918a4849 (patch) | |
| tree | 5b740f34fbb30895a8a9017ef82427126830b73c /apps/web/app/(dash) | |
| parent | merge oopsies (diff) | |
| download | supermemory-04e57ccf80a9fdca045eb5782dc9f520918a4849.tar.xz supermemory-04e57ccf80a9fdca045eb5782dc9f520918a4849.zip | |
address ts issues
Diffstat (limited to 'apps/web/app/(dash)')
| -rw-r--r-- | apps/web/app/(dash)/home/filterSpaces.tsx | 4 | ||||
| -rw-r--r-- | apps/web/app/(dash)/home/history.tsx | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/apps/web/app/(dash)/home/filterSpaces.tsx b/apps/web/app/(dash)/home/filterSpaces.tsx index 9896141c..1208fd17 100644 --- a/apps/web/app/(dash)/home/filterSpaces.tsx +++ b/apps/web/app/(dash)/home/filterSpaces.tsx @@ -62,7 +62,9 @@ export function FilterSpaces({ placeholder={selectedSpaces.length ? "" : "Search in Spaces"} onKeyDown={handleKeyDown} className="text-white peer placeholder:text-white" - onChangeCapture={(e) => setInput(e.currentTarget.value)} + onChangeCapture={(e: React.ChangeEvent<HTMLInputElement>) => + setInput(e.target.value) + } value={input} /> </div> diff --git a/apps/web/app/(dash)/home/history.tsx b/apps/web/app/(dash)/home/history.tsx index 307ef4e3..6b8d23de 100644 --- a/apps/web/app/(dash)/home/history.tsx +++ b/apps/web/app/(dash)/home/history.tsx @@ -1,12 +1,8 @@ -import { getChatHistory } from "@repo/web/app/actions/fetchers"; import { ArrowLongRightIcon } from "@heroicons/react/24/outline"; import { Skeleton } from "@repo/ui/shadcn/skeleton"; -import Link from "next/link"; import { memo, useEffect, useState } from "react"; import { motion } from "framer-motion"; -import { chatThreads } from "@/server/db/schema"; import { getQuerySuggestions } from "@/app/actions/doers"; -import { Button } from "@repo/ui/shadcn/button"; const History = memo(({ setQuery }: { setQuery: (q: string) => void }) => { const [suggestions, setSuggestions] = useState<string[] | null>(null); |