mirror of
https://github.com/dpup/meshstream.git
synced 2026-07-05 01:11:34 +02:00
Add a dashboard showing observed nodes and gateways
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { PageWrapper, NodeDetail } from "../components";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/node/$nodeId")({
|
||||
component: NodePage,
|
||||
});
|
||||
|
||||
function NodePage() {
|
||||
// Get the node ID from the route params
|
||||
const { nodeId } = Route.useParams();
|
||||
|
||||
// Convert nodeId string to number
|
||||
const nodeIdNum = parseInt(nodeId, 10);
|
||||
|
||||
return (
|
||||
<PageWrapper>
|
||||
<NodeDetail nodeId={nodeIdNum} />
|
||||
</PageWrapper>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user