This commit is contained in:
2026-03-22 12:10:13 -04:00
parent 9ed63b2695
commit 784e53c557
34 changed files with 2046 additions and 237 deletions

View File

@@ -2,15 +2,18 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import axios from 'axios';
import { ToastProvider } from './components/ToastContext';
import './auth/authInterceptor';
import { setupAuthInterceptors } from './auth/authInterceptor';
import App from './App';
import './index.css';
setupAuthInterceptors(axios);
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5, // 5 minutes
staleTime: 1000 * 60 * 5,
retry: 1,
},
mutations: {