Update
This commit is contained in:
@@ -4,6 +4,7 @@ import { createInertiaApp } from '@inertiajs/react';
|
||||
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { initializeTheme } from './hooks/use-appearance';
|
||||
import { AxiosProvider } from './plugins/AxiosContext';
|
||||
|
||||
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
|
||||
|
||||
@@ -13,7 +14,15 @@ createInertiaApp({
|
||||
setup({ el, App, props }) {
|
||||
const root = createRoot(el);
|
||||
|
||||
root.render(<App {...props} />);
|
||||
const app = (
|
||||
<>
|
||||
<AxiosProvider>
|
||||
<App {...props} />
|
||||
</AxiosProvider>
|
||||
</>
|
||||
);
|
||||
|
||||
root.render(app);
|
||||
},
|
||||
progress: {
|
||||
color: '#4B5563',
|
||||
|
||||
Reference in New Issue
Block a user