diff --git a/client/web/src/components/app.tsx b/client/web/src/components/app.tsx index b684615fa..28350e52e 100644 --- a/client/web/src/components/app.tsx +++ b/client/web/src/components/app.tsx @@ -5,7 +5,7 @@ import useNodeData from "src/hooks/node-data" export default function App() { // TODO(sonia): use isPosting value from useNodeData // to fill loading states. - const { data, updateNode } = useNodeData() + const { data, refreshData, updateNode } = useNodeData() return (
@@ -15,7 +15,11 @@ export default function App() { ) : ( <>
-
+
diff --git a/client/web/src/components/legacy.tsx b/client/web/src/components/legacy.tsx index 9d0ec5640..078f5a4bd 100644 --- a/client/web/src/components/legacy.tsx +++ b/client/web/src/components/legacy.tsx @@ -1,5 +1,6 @@ import cx from "classnames" import React from "react" +import { apiFetch } from "src/api" import { NodeData, NodeUpdate } from "src/hooks/node-data" // TODO(tailscale/corp#13775): legacy.tsx contains a set of components @@ -9,9 +10,11 @@ import { NodeData, NodeUpdate } from "src/hooks/node-data" export function Header({ data, + refreshData, updateNode, }: { data: NodeData + refreshData: () => void updateNode: (update: NodeUpdate) => void }) { return ( @@ -89,7 +92,11 @@ export function Header({ {" "} |{" "}