Skip to content

Commit 031913e

Browse files
committed
refactor(platform): use APP_NAME as default config of title
1 parent 9c12d0f commit 031913e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/platform/src/app/hooks/usePageTitle.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import { isUndefined } from 'lodash';
22
import { useEffect } from 'react';
33

4+
import { APP_NAME } from '../config/other';
5+
46
export const TITLE_CONFIG: {
57
default: string;
68
separator: string;
79
prefix?: string;
810
suffix?: string;
911
} = {
10-
default: 'Platform',
12+
default: APP_NAME,
1113
separator: ' - ',
12-
suffix: 'Platform',
14+
suffix: APP_NAME,
1315
};
1416

1517
export function usePageTitle(title?: string) {

0 commit comments

Comments
 (0)