init
This commit is contained in:
17
src/main.jsx
Normal file
17
src/main.jsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import * as React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import Home from './Home';
|
||||
import { AuthProvider } from "../react-auth/src";
|
||||
import { OpenapiProvider } from "../react-openapi/src";
|
||||
|
||||
const rootElement = document.getElementById('root');
|
||||
const root = createRoot(rootElement);
|
||||
const AUTH_BASE = import.meta.env.VITE_AUTH_BASE_URL;
|
||||
|
||||
root.render(
|
||||
<AuthProvider authBaseUrl={AUTH_BASE}>
|
||||
<OpenapiProvider authBaseUrl={AUTH_BASE}>
|
||||
<Home />
|
||||
</OpenapiProvider>
|
||||
</AuthProvider>
|
||||
);
|
||||
Reference in New Issue
Block a user