expenses pagination fixes

This commit is contained in:
2026-06-18 23:37:56 +05:30
parent 12e5f113b8
commit b0c5332d77
2 changed files with 18 additions and 9 deletions

16
src/openapi-config.ts Normal file
View File

@@ -0,0 +1,16 @@
import type { SpecConfiguration } from "../react-openapi";
// import { tokenStore } from "../react-auth";
const apiBase = import.meta.env.VITE_API_BASE_URL;
export const specConfiguration: SpecConfiguration = {
specUrl: `${apiBase}/openapi.json`,
baseApiUrl: apiBase,
title: "Khata",
resourceConfig: {
expenses: {
filterOptions: { mode: "client" },
},
},
// getToken: () => tokenStore.get(),
};