2022-08-02 12:11:38 +00:00
|
|
|
import "@patternfly/react-core/dist/styles/base.css";
|
2023-03-27 16:34:53 +00:00
|
|
|
import "@patternfly/patternfly/patternfly-addons.css";
|
2022-08-02 12:11:38 +00:00
|
|
|
|
2022-08-03 12:12:07 +00:00
|
|
|
import { StrictMode } from "react";
|
2023-07-24 14:24:27 +00:00
|
|
|
// eslint-disable-next-line react/no-deprecated
|
2022-11-18 16:13:39 +00:00
|
|
|
import { render } from "react-dom";
|
2023-03-27 16:34:53 +00:00
|
|
|
import { createHashRouter, RouterProvider } from "react-router-dom";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2023-05-11 18:23:10 +00:00
|
|
|
import { i18n } from "./i18n/i18n";
|
2023-05-10 06:20:49 +00:00
|
|
|
import { initKeycloak } from "./keycloak";
|
2023-03-27 16:34:53 +00:00
|
|
|
import { RootRoute } from "./routes";
|
2022-04-27 15:29:57 +00:00
|
|
|
|
|
|
|
import "./index.css";
|
|
|
|
|
2023-05-03 11:27:27 +00:00
|
|
|
// Initialize required components before rendering app.
|
2023-05-10 06:20:49 +00:00
|
|
|
await initKeycloak();
|
2023-05-11 18:23:10 +00:00
|
|
|
await i18n.init();
|
2023-05-03 11:27:27 +00:00
|
|
|
|
2023-03-27 16:34:53 +00:00
|
|
|
const router = createHashRouter([RootRoute]);
|
2023-02-13 07:18:16 +00:00
|
|
|
const container = document.getElementById("app");
|
2022-04-27 15:29:57 +00:00
|
|
|
|
2023-02-13 07:18:16 +00:00
|
|
|
render(
|
|
|
|
<StrictMode>
|
2023-03-27 16:34:53 +00:00
|
|
|
<RouterProvider router={router} />
|
2023-02-13 07:18:16 +00:00
|
|
|
</StrictMode>,
|
2023-07-11 14:03:21 +00:00
|
|
|
container,
|
2023-02-13 07:18:16 +00:00
|
|
|
);
|