We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbfa198 commit 618cb61Copy full SHA for 618cb61
internal/dev_server/ui/dist/index.html
internal/dev_server/ui/src/RouteSelector.tsx
@@ -7,11 +7,10 @@ import {
7
ListBoxItem,
8
} from '@launchpad-ui/components';
9
import { Icon } from '@launchpad-ui/icons';
10
-import { useNavigate, useLocation } from 'react-router';
+import { useLocation } from 'react-router';
11
import { Fragment } from 'react';
12
13
const RouteSelector = () => {
14
- const navigate = useNavigate();
15
const location = useLocation();
16
17
const options = [
@@ -25,7 +24,7 @@ const RouteSelector = () => {
25
24
26
const handleSelectionChange = (key: React.Key) => {
27
if (typeof key === 'string') {
28
- navigate(key);
+ window.location.href = key;
29
}
30
};
31
0 commit comments