fix(desktop): suppress react-refresh lint warning for useTheme hook

Standard pattern for context providers exporting both Provider and hook.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing 2026-02-12 11:28:10 +08:00
parent 7e2f55bfe9
commit e93e0952bd

View file

@ -82,6 +82,7 @@ export function ThemeProvider({
)
}
// eslint-disable-next-line react-refresh/only-export-components
export const useTheme = () => {
const context = useContext(ThemeProviderContext)
if (context === undefined)