feat: partner badge in marketplace (#14258)

This commit is contained in:
Wu Tianwei
2025-02-25 12:09:37 +08:00
committed by GitHub
parent 28add22f20
commit 42b13bd312
31 changed files with 2288 additions and 31 deletions

13
web/hooks/use-theme.ts Normal file
View File

@@ -0,0 +1,13 @@
import { Theme } from '@/types/app'
import { useTheme as useBaseTheme } from 'next-themes'
const useTheme = () => {
const { theme, resolvedTheme, ...rest } = useBaseTheme()
return {
// only returns 'light' or 'dark' theme
theme: theme === Theme.system ? resolvedTheme as Theme : theme as Theme,
...rest,
}
}
export default useTheme