mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
removed some domain dependencies
This commit is contained in:
parent
a1dab7a3ca
commit
50daae3cf1
4 changed files with 7 additions and 35 deletions
|
@ -2,8 +2,6 @@ import React from 'react'
|
|||
import Head from 'next/head'
|
||||
import { useQueryClient } from 'react-query'
|
||||
|
||||
import constants from '../constants'
|
||||
|
||||
export default function Header(props) {
|
||||
const { title } = props
|
||||
const queryClient = useQueryClient()
|
||||
|
@ -17,7 +15,9 @@ export default function Header(props) {
|
|||
|
||||
return (
|
||||
<Head>
|
||||
<title>{`${unreadString}${titleString}Qmining | ${constants.domain}`}</title>
|
||||
<title>{`${unreadString}${titleString}Qmining${
|
||||
typeof window !== 'undefined' ? `| ${window.location.domain}` : ''
|
||||
}`}</title>
|
||||
</Head>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue