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:
parent
7e2f55bfe9
commit
e93e0952bd
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue