Skip to content

Commit

Permalink
Move to hashrouter
Browse files Browse the repository at this point in the history
Signed-off-by: Bipul Adhikari <[email protected]>
  • Loading branch information
bipuladh committed Sep 20, 2024
1 parent fb764eb commit 5ad9b35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/sizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
useNavigate,
useLocation,
BrowserRouter,

Check warning on line 9 in src/components/sizer.tsx

View workflow job for this annotation

GitHub Actions / basic-test

'BrowserRouter' is defined but never used
HashRouter,
} from "react-router-dom";
import { Page, Spinner } from "@patternfly/react-core";
import { request } from "@octokit/request";
Expand Down Expand Up @@ -229,9 +230,9 @@ const BETA_BASE = "https://storage.googleapis.com/sizer.ocs.ninja/beta";
export const Sizer: React.FC = () => (
<Provider store={store}>
<ErrorBoundary>
<BrowserRouter basename={IS_BETA ? BETA_BASE : "/"}>
<HashRouter basename={IS_BETA ? BETA_BASE : "/"}>
<Sizer_ />
</BrowserRouter>
</HashRouter>
</ErrorBoundary>
</Provider>
);

0 comments on commit 5ad9b35

Please sign in to comment.