File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,13 @@ import { UserContext } from "../user-context";
21
21
import { OIDCClientConfig } from "@gitpod/public-api/lib/gitpod/experimental/v1/oidc_pb" ;
22
22
import { useQueryParams } from "../hooks/use-query-params" ;
23
23
import { forceDedicatedSetupParam } from "./use-check-dedicated-setup" ;
24
+ import { useDocumentTitle } from "../hooks/use-document-title" ;
24
25
25
26
type Props = {
26
27
onComplete : ( ) => void ;
27
28
} ;
28
29
const DedicatedSetup : FC < Props > = ( { onComplete } ) => {
30
+ useDocumentTitle ( "Welcome - Gitpod" ) ;
29
31
const currentOrg = useCurrentOrg ( ) ;
30
32
const oidcClients = useOIDCClientsQuery ( ) ;
31
33
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
+ * Licensed under the GNU Affero General Public License (AGPL).
4
+ * See License.AGPL.txt in the project root for license information.
5
+ */
6
+
7
+ import { useEffect } from "react" ;
8
+
9
+ export function useDocumentTitle ( title ?: string ) {
10
+ useEffect ( ( ) => {
11
+ if ( title && title . length > 0 ) {
12
+ document . title = title ;
13
+ }
14
+ } , [ title ] ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments