File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
web/app/[workspaceSlug]/(projects)/projects/(detail)/[projectId]/pages/(detail) Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { BreadcrumbLink, Logo } from "@/components/common";
1313import { PageEditInformationPopover } from "@/components/pages" ;
1414// helpers
1515import { convertHexEmojiToDecimal } from "@/helpers/emoji.helper" ;
16+ import { getPageName } from "@/helpers/page.helper" ;
1617// hooks
1718import { usePage , useProject } from "@/hooks/store" ;
1819import { usePlatformOS } from "@/hooks/use-platform-os" ;
@@ -58,6 +59,7 @@ export const PageDetailsHeader = observer(() => {
5859 }
5960 } ;
6061
62+ const pageTitle = getPageName ( name ) ;
6163 const isVersionHistoryOverlayActive = ! ! searchParams . get ( "version" ) ;
6264
6365 return (
@@ -148,9 +150,9 @@ export const PageDetailsHeader = observer(() => {
148150 }
149151 />
150152 </ div >
151- < Tooltip tooltipContent = { name ?? "Page" } position = "bottom" isMobile = { isMobile } >
153+ < Tooltip tooltipContent = { pageTitle } position = "bottom" isMobile = { isMobile } >
152154 < div className = "relative line-clamp-1 block max-w-[150px] overflow-hidden truncate" >
153- { name ?? "Page" }
155+ { pageTitle }
154156 </ div >
155157 </ Tooltip >
156158 </ div >
You can’t perform that action at this time.
0 commit comments