add axios

This commit is contained in:
2025-02-22 11:57:18 -03:00
parent bc77e892a5
commit 772cc74550
3 changed files with 49 additions and 8 deletions

View File

@@ -15,7 +15,6 @@ import amplifyconfig from './amplifyconfiguration.json'
import stylesheet from './app.css?url'
Amplify.configure(amplifyconfig)
const queryClient = new QueryClient()
export const links = () => [
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
@@ -51,6 +50,8 @@ export function Layout({ children }) {
}
export default function App() {
const queryClient = new QueryClient()
return (
<QueryClientProvider client={queryClient}>
<AuthProvider>
@@ -86,6 +87,7 @@ export function ErrorBoundary({ error }) {
<main className="pt-16 p-4 container mx-auto">
<h1>{message}</h1>
<p>{details}</p>
{stack && (
<pre className="w-full p-4 overflow-x-auto">
<code>{stack}</code>