1
0
Fork 0

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:
Massimiliano D. 2025-09-22 10:00:44 +02:00 committed by GitHub
parent 5df4c270a7
commit 2580d0f95c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 124 additions and 37 deletions

View file

@ -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 }
}