Skip to content

Commit 3c992b9

Browse files
authored
docs: remove deprecated titleSuffix (#183)
1 parent 50abba7 commit 3c992b9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

docs/theme.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import { useRouter } from 'next/router'
2-
31
export default {
4-
titleSuffix: () => {
5-
// eslint-disable-next-line react-hooks/rules-of-hooks
6-
const { route } = useRouter()
7-
if (route === '/') return ''
8-
return ' – Json Viewer'
9-
},
102
logo: '@textea/json-viewer',
113
project: {
124
link: 'https://github.com/TexteaInc/json-viewer'

0 commit comments

Comments
 (0)