Add displayName to contexts (#8814)
This commit is contained in:
@@ -89,6 +89,7 @@ export interface ThemeProviderProps {
|
||||
}
|
||||
|
||||
export const ThemeContext = createContext<Theme>(defaultTheme)
|
||||
ThemeContext.displayName = 'ThemeContext'
|
||||
|
||||
export const useTheme = () => useContext(ThemeContext)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user