FinancialReimbursementSyste.../src/index.tsx

41 lines
1.4 KiB
TypeScript
Raw Normal View History

import React from 'react';
import ReactDOM from 'react-dom/client';
2022-12-23 23:00:44 +08:00
import 'antd/dist/reset.css';
import './index.css';
import reportWebVitals from './reportWebVitals';
2022-12-24 11:50:11 +08:00
import {Provider} from 'react-redux';
import {store, persistor} from './models/store';
2022-12-23 23:00:44 +08:00
import {RouterProvider} from "react-router-dom";
2022-12-27 21:33:49 +08:00
import CustomRouter from "./router/router";
2022-12-24 11:50:11 +08:00
import {PersistGate} from 'redux-persist/integration/react'
2022-12-26 17:44:46 +08:00
import {ConfigProvider} from "antd";
2023-01-01 16:19:30 +08:00
import zhCN from 'antd/locale/zh_CN';
const root = ReactDOM.createRoot(
2022-12-23 23:00:44 +08:00
document.getElementById('root') as HTMLElement
);
root.render(
2022-12-23 23:00:44 +08:00
<React.StrictMode>
2022-12-24 11:50:11 +08:00
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
2023-01-01 16:19:30 +08:00
<ConfigProvider locale={zhCN} theme={{
2022-12-26 17:44:46 +08:00
token: {
colorPrimary: "#1890ff",
colorSuccess: "#52c41a",
colorWarning: "#faad14",
colorInfo: "#1890ff",
wireframe: false
}
}}>
2022-12-27 21:33:49 +08:00
<CustomRouter />
2022-12-26 17:44:46 +08:00
</ConfigProvider>
2022-12-24 11:50:11 +08:00
</PersistGate>
</Provider>
2022-12-23 23:00:44 +08:00
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();