diff --git a/virtweb_frontend/src/routes/NetworksListRoute.tsx b/virtweb_frontend/src/routes/NetworksListRoute.tsx index 8aad823..d654484 100644 --- a/virtweb_frontend/src/routes/NetworksListRoute.tsx +++ b/virtweb_frontend/src/routes/NetworksListRoute.tsx @@ -21,6 +21,7 @@ import { useConfirm } from "../hooks/providers/ConfirmDialogProvider"; import { useSnackbar } from "../hooks/providers/SnackbarProvider"; import { useAlert } from "../hooks/providers/AlertDialogProvider"; import { NetworkStatusWidget } from "../widgets/net/NetworkStatusWidget"; +import { useNavigate } from "react-router-dom"; export function NetworksListRoute(): React.ReactElement { const confirm = useConfirm(); @@ -77,6 +78,8 @@ function NetworksListRouteInner(p: { list: NetworkInfo[]; onRequestDelete: (n: NetworkInfo) => void; }): React.ReactElement { + const navigate = useNavigate(); + return ( {p.list.map((t) => { return ( - + navigate(NetworkURL(t))} + > {t.name} {t.description ?? (