mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-28 04:13:22 -04:00
migrate from HashRouter to BrowserRouter
This commit is contained in:
parent
b90e95d878
commit
cb985bc7f6
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ import "@patternfly/react-core/dist/styles/base.css";
|
|||
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { createHashRouter, RouterProvider } from "react-router-dom";
|
||||
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
||||
import { i18n } from "./i18n/i18n";
|
||||
import { RootRoute } from "./routes";
|
||||
|
||||
|
|
@ -12,7 +12,7 @@ import "./index.css";
|
|||
// Initialize required components before rendering app.
|
||||
await i18n.init();
|
||||
|
||||
const router = createHashRouter([RootRoute]);
|
||||
const router = createBrowserRouter([RootRoute]);
|
||||
const container = document.getElementById("app");
|
||||
const root = createRoot(container!);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue