feat: udated title for open project

pull/82/head
Samuel Rowe 3 years ago
parent a8607588a1
commit 89f030a420

@ -39,6 +39,7 @@ import ModalNetwork from "../Modal/network";
import CreateVolumeModal from "../Modal/volume/CreateVolumeModal";
import EditVolumeModal from "../Modal/volume/EditVolumeModal";
import CodeEditor from "../CodeEditor";
import { useTitle } from "../../hooks";
export default function Project() {
const { uuid } = useParams<{ uuid: string }>();
@ -96,6 +97,13 @@ export default function Project() {
}
);
useTitle(
[
isFetching ? "" : data ? data.name : "New project",
"Container Toolkit"
].join(" | ")
);
stateNodesRef.current = nodes;
stateConnectionsRef.current = connections;
stateNetworksRef.current = networks;

Loading…
Cancel
Save