index.tsx 605 B

12345678910111213141516171819202122232425262728
  1. import App from "./App";
  2. import store from "./store/index";
  3. import { Provider } from "react-redux";
  4. import { createRoot } from "react-dom/client";
  5. import { ConfigProvider } from "antd";
  6. // import dayjs from "dayjs";
  7. import "dayjs/locale/zh-cn";
  8. import locale from "antd/locale/zh_CN";
  9. const container = document.getElementById("root") as HTMLElement;
  10. const root = createRoot(container);
  11. root.render(
  12. <ConfigProvider
  13. locale={locale}
  14. theme={{
  15. token: {
  16. colorPrimary: "#9F1927",
  17. },
  18. }}
  19. >
  20. <Provider store={store}>
  21. <App />
  22. </Provider>
  23. </ConfigProvider>
  24. );