|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
import React from 'react'
|
|
|
|
|
import ReactDOM from 'react-dom/client'
|
|
|
|
|
import { createRoot } from 'react-dom/client'
|
|
|
|
|
import {
|
|
|
|
|
createBrowserRouter,
|
|
|
|
|
RouterProvider,
|
|
|
|
@ -42,8 +41,6 @@ import { PERM_ACCOUNT_MANAGEMENT, PERM_ROLE_NEW, PERM_OVERSEA, PERM_AIR_TICKET,
|
|
|
|
|
|
|
|
|
|
import './i18n'
|
|
|
|
|
|
|
|
|
|
const { createRoot } = ReactDOM
|
|
|
|
|
|
|
|
|
|
const initRouter = async () => {
|
|
|
|
|
return createBrowserRouter([
|
|
|
|
|
{
|
|
|
|
@ -100,8 +97,11 @@ const initAppliction = async () => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const router = await initRouter()
|
|
|
|
|
const root = document.getElementById('root')
|
|
|
|
|
|
|
|
|
|
if (!root) throw new Error('No root element found')
|
|
|
|
|
|
|
|
|
|
createRoot(document.getElementById('root')).render(
|
|
|
|
|
createRoot(root).render(
|
|
|
|
|
//<React.StrictMode>
|
|
|
|
|
<ThemeContext.Provider value={{ colorPrimary: '#00b96b', borderRadius: 4 }}>
|
|
|
|
|
<RouterProvider
|
|
|
|
|