import React from 'react';
import ReactDOM from 'react-dom/client';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';
import 'moment/locale/zh-cn';
import { Provider } from 'react-redux';
import { HashRouter } from 'react-router-dom';
import { store } from './models/store';
import AppRouters from './views/AppRouters';
import './index.less';
import './components/ant_override.less'
import DataPreload from './components/DataPreload';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
 
root.render( 
  <Provider store={store}>
    <DataPreload>
      <HashRouter>
        <ConfigProvider locale={zhCN}>
          <AppRouters />
        </ConfigProvider>
      </HashRouter>
    </DataPreload>
  </Provider>
);
