From 89f030a420c064aba447bb0e60c4334887fdfeca Mon Sep 17 00:00:00 2001 From: Samuel Rowe Date: Fri, 29 Jul 2022 22:51:50 +0530 Subject: [PATCH] feat: udated title for open project --- services/frontend/src/components/Project/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/frontend/src/components/Project/index.tsx b/services/frontend/src/components/Project/index.tsx index 9825055..6cf043d 100644 --- a/services/frontend/src/components/Project/index.tsx +++ b/services/frontend/src/components/Project/index.tsx @@ -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;