diff --git a/index.html b/index.html index bf07f30..8dd728e 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,9 @@
- + + ++
> ) } diff --git a/src/pages/quotes/QuotesPage.tsx b/src/pages/quotes/QuotesPage.tsx index 8519a54..7d273ff 100644 --- a/src/pages/quotes/QuotesPage.tsx +++ b/src/pages/quotes/QuotesPage.tsx @@ -3,10 +3,10 @@ import { H3 } from "@/components/Headings" import { PageTitle } from "@/components/PageTitle" import { Button } from "@/components/ui/button" import { Skeleton } from "@/components/ui/skeleton" -import { listPendingQuotesOptions } from "@/generated/client/@tanstack/react-query.gen" +import { listAcceptedQuotesOptions, listPendingQuotesOptions } from "@/generated/client/@tanstack/react-query.gen" import useLocalStorage from "@/hooks/use-local-storage" import { useSuspenseQuery } from "@tanstack/react-query" -import { ViewIcon } from "lucide-react" +import { LoaderIcon } from "lucide-react" import { Suspense } from "react" import { Link, useNavigate } from "react-router" @@ -18,41 +18,87 @@ function Loader() { ) } -function QuoteListPendingRaw() { - const { data } = useSuspenseQuery({ - ...listPendingQuotesOptions({}), +function QuoteListPending() { + const navigate = useNavigate() + + const { data, isFetching } = useSuspenseQuery({ + ...listPendingQuotesOptions(), }) return ( <> -
- {JSON.stringify(data, null, 2)} -+
+ {JSON.stringify(quotesPending, null, 2)} ++
+ {JSON.stringify(quotesAccepted, null, 2)} ++ > + )} + > + ) } function PageBody() { return ( <> -