diff --git a/apps/dash/src/app/[area]/page.tsx b/apps/dash/src/app/[area]/page.tsx index 73bd0921..3ddacd58 100644 --- a/apps/dash/src/app/[area]/page.tsx +++ b/apps/dash/src/app/[area]/page.tsx @@ -4,6 +4,7 @@ import useSWR from "swr"; import fetcher from "@/utils/fetcher"; import { + Button, Card, Grid, Input, @@ -30,10 +31,11 @@ export default function Page({ }) { const [currentPage, setCurrentPage] = useState(1); const [cursor, setCursor] = useState(0); - const [count, setCount] = useState(10); + const [count, setCount] = useState(100); + const [key, setKey] = useState(""); const { data, isLoading } = useSWR( - `/api/${params.area}?cursor=${cursor}&&count=${count}` as string, + `/api/${params.area}?cursor=${cursor}&count=${count}&key=${key}` as string, (url) => fetcher(url).then((res) => res.json()) ); @@ -63,7 +65,11 @@ export default function Page({ setCurrentPage(0); setCount(Math.abs(gap) * 10); } - setCount(); + // setCount(); + }; + + const handleSearch = () => { + setKey(searchUser); }; if (isLoading) return ; @@ -82,15 +88,20 @@ export default function Page({ Pro Premium + + + - - - + {/**/} + {/* */} + {/**/} ); }