diff options
Diffstat (limited to 'client/src/index.js')
-rw-r--r-- | client/src/index.js | 12 |
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(); |