Adds accounting-service PATCH/archive, fiscal helpers, COA templates and setup status, plus SuperApp Accounting UI (DS, scoreboard, masters, vouchers, ledger, ops modules) with session refresh and HTTPS public API URLs. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
691 B
TypeScript
28 lines
691 B
TypeScript
"use client";
|
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import { useState, type ReactNode } from "react";
|
|
import { Toaster } from "sonner";
|
|
|
|
export function AppProviders({ children }: { children: ReactNode }) {
|
|
const [client] = useState(
|
|
() =>
|
|
new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
staleTime: 30_000,
|
|
retry: 1,
|
|
refetchOnWindowFocus: false,
|
|
},
|
|
},
|
|
})
|
|
);
|
|
|
|
return (
|
|
<QueryClientProvider client={client}>
|
|
{children}
|
|
<Toaster position="top-center" dir="rtl" richColors closeButton />
|
|
</QueryClientProvider>
|
|
);
|
|
}
|