From 570e7dcc566462193d9187556c86dfa772f87900 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 18:58:34 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/invoices.index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/invoices.index.tsx b/src/routes/invoices.index.tsx index 37503ea..2667cf5 100644 --- a/src/routes/invoices.index.tsx +++ b/src/routes/invoices.index.tsx @@ -26,6 +26,8 @@ export const Route = createFileRoute("/invoices/")({ type UnbilledStatus = "unbilled" | "marked" | "all"; +const PAGE_SIZE = 100; + function InvoicesIndex() { const navigate = useNavigate(); const { user } = useAuth(); @@ -33,6 +35,8 @@ function InvoicesIndex() { const [loading, setLoading] = useState(true); const [q, setQ] = useState(""); const [status, setStatus] = useState("all"); + const [page, setPage] = useState(0); + const [totalCount, setTotalCount] = useState(0); const [time, setTime] = useState([]); const [expenses, setExpenses] = useState([]);