set up dynamic title for website

This commit is contained in:
maxim 2025-02-21 17:19:36 +03:00
parent 55b4f08c90
commit dea0ed1c2c
2 changed files with 7 additions and 2 deletions

View File

@ -20,7 +20,7 @@
content="https://refine.dev/img/refine_social.png"
/>
<title>
Refine - Build your React-based CRUD applications, without constraints.
Белые ночи
</title>
</head>
<body>

View File

@ -258,7 +258,12 @@ function App() {
<RefineKbar />
<UnsavedChangesNotifier />
<DocumentTitleHandler />
<DocumentTitleHandler
handler={(title) => {
const cleanedTitle = title.autoGeneratedTitle.split('|')[0].trim()
return `${cleanedTitle} — Белые ночи`
}}
/>
</Refine>
<DevtoolsPanel />
</DevtoolsProvider>