Fix ESLint errors
This commit is contained in:
1 parent
2e027f5bb2
commit
6b8d646f8a
82 files changed
+217
-193
No files matched your search
@@ -51,6 +51,8 @@ export function useMediaQuery(
|
||||
}
|
||||
|
||||
const media = window.matchMedia(mediaQuery);
|
||||
// Initialize matches synchronously - this is safe for media queries
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
setMatches(media.matches);
|
||||
|
||||
// Create listener for changes
|
||||
|
||||
Reference in new issue
Block a user