expenses pagination fixes
This commit is contained in:
11
src/main.jsx
11
src/main.jsx
@@ -23,6 +23,7 @@ import { AuthProvider } from "../react-auth";
|
||||
import Header from './Header';
|
||||
import Footer from './Footer';
|
||||
import AppTheme from './shared-theme/AppTheme';
|
||||
import { specConfiguration } from './openapi-config';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
@@ -33,14 +34,6 @@ const rootElement = document.getElementById('root');
|
||||
const root = createRoot(rootElement);
|
||||
|
||||
const AUTH_BASE = import.meta.env.VITE_AUTH_BASE_URL;
|
||||
const API_BASE = import.meta.env.VITE_API_BASE_URL;
|
||||
|
||||
const specConfig = {
|
||||
specUrl: `${API_BASE}/openapi.yaml`,
|
||||
baseApiUrl: API_BASE,
|
||||
title: 'Khata Admin',
|
||||
getToken: () => localStorage.getItem('token'),
|
||||
};
|
||||
|
||||
const routerMapping = [
|
||||
{ path: "/", component: Home, headerTitle: "Home" },
|
||||
@@ -54,7 +47,7 @@ const routerMapping = [
|
||||
|
||||
root.render(
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<AppProvider specConfiguration={specConfig}>
|
||||
<AppProvider specConfiguration={specConfiguration}>
|
||||
<BrowserRouter>
|
||||
<AuthProvider authBaseUrl={AUTH_BASE}>
|
||||
<AppTheme>
|
||||
|
||||
Reference in New Issue
Block a user