aboutsummaryrefslogtreecommitdiff
path: root/client/src/index.js
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2025-04-27 20:13:54 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2025-04-27 20:13:54 -0600
commita0a35ca6f19213123e9fb102096ebeff7a90cb2c (patch)
treea3090d944cca0941efa3c2095cbbc5ceb560c94d /client/src/index.js
parent6262f0789afee916340a4699ae8f2b6a2e93e4ac (diff)
move to router
Diffstat (limited to 'client/src/index.js')
-rw-r--r--client/src/index.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/src/index.js b/client/src/index.js
index 10d3d73..bebdf88 100644
--- a/client/src/index.js
+++ b/client/src/index.js
@@ -4,6 +4,9 @@ import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { initVChartArcoTheme } from '@visactor/vchart-arco-theme';
+import { BrowserRouter } from 'react-router-dom';import { ConfigProvider } from '@arco-design/web-react';
+import enUS from '@arco-design/web-react/es/locale/en-US';
+
initVChartArcoTheme({
defaultMode: 'light',
@@ -13,11 +16,12 @@ initVChartArcoTheme({
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
- <App />
+ <BrowserRouter>
+ <ConfigProvider locale={enUS}>
+ <App />
+ </ConfigProvider>
+ </BrowserRouter>
</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();