fix: remove page title hook (#7583)

* fix: page title hook removed

* fix: build errors
This commit is contained in:
sriram veeraghanta 2025-08-16 14:10:10 +05:30 committed by GitHub
parent d692db47b2
commit 4b06bc4d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 17 deletions

View file

@ -1,4 +1,4 @@
import { useHead } from "@plane/ui";
import { useEffect } from "react";
type PageHeadTitleProps = {
title?: string;
@ -8,7 +8,11 @@ type PageHeadTitleProps = {
export const PageHead: React.FC<PageHeadTitleProps> = (props) => {
const { title } = props;
useHead({ title });
useEffect(() => {
if (title) {
document.title = title ?? "Plane | Simple, extensible, open-source project management tool.";
}
}, [title]);
return null;
};