mirror of
https://gitlab.com/MrFry/qmining-page
synced 2025-04-01 20:23:44 +02:00
npm packages update
This commit is contained in:
parent
ed507dc39f
commit
32522097c0
51 changed files with 3247 additions and 5187 deletions
|
@ -1,21 +0,0 @@
|
|||
import React from 'react'
|
||||
import Head from 'next/head'
|
||||
import { useQueryClient } from 'react-query'
|
||||
|
||||
export default function Header(props) {
|
||||
const { title } = props
|
||||
const queryClient = useQueryClient()
|
||||
const globalData = queryClient.getQueryData(['infos'])
|
||||
|
||||
const unreadString =
|
||||
globalData && globalData.unreads.length > 0
|
||||
? `(${globalData.unreads.length}) `
|
||||
: ''
|
||||
const titleString = title ? `${title} - ` : ''
|
||||
|
||||
return (
|
||||
<Head>
|
||||
<title>{`${unreadString}${titleString}Qmining | Frylabs.net`}</title>
|
||||
</Head>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue