Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Added SessionGuard component to manage session expiration and online status. - Updated AuthProvider to streamline session fetching and handling. - Introduced IdentityProvidersSection for managing OAuth, SAML, and LDAP identity providers. - Implemented identity provider guides for easier configuration. - Enhanced mail settings with infinite scroll option for improved user experience. - Updated global styles and layout components for better consistency across the application.
17 lines
433 B
TypeScript
17 lines
433 B
TypeScript
"use client"
|
|
|
|
import { useEffect } from "react"
|
|
import { SUITE_TITLE_SEP } from "@/lib/suite/page-metadata"
|
|
|
|
export function useDriveDocumentTitle(titleSegment: string) {
|
|
useEffect(() => {
|
|
const trimmed = titleSegment.trim()
|
|
if (!trimmed) return
|
|
const previous = document.title
|
|
document.title = `${trimmed}${SUITE_TITLE_SEP}UltiDrive`
|
|
return () => {
|
|
document.title = previous
|
|
}
|
|
}, [titleSegment])
|
|
}
|