Update hub-button-app to use a local script
Co-authored-by: Firespray-31 <147506444+Firespray-31@users.noreply.github.com>
This commit is contained in:
parent
5df4c270a7
commit
2580d0f95c
7 changed files with 124 additions and 37 deletions
|
|
@ -1,13 +0,0 @@
|
|||
import { useMemo } from 'react'
|
||||
import useSWR from 'swr'
|
||||
|
||||
export default function useVersion() {
|
||||
const { data: version } = useSWR('/version')
|
||||
|
||||
const showHubButton = useMemo(() => {
|
||||
if (!version) return false
|
||||
return !version?.disableDashboardAd
|
||||
}, [version])
|
||||
|
||||
return { showHubButton, version }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue