@themes/react
Advanced tools
@@ -6,3 +6,3 @@ "use strict"; | ||
| function useMatchMedia(query) { | ||
| if (typeof window === 'undefined') { | ||
| if (typeof matchMedia !== 'function') { | ||
| return false; | ||
@@ -9,0 +9,0 @@ } |
+2
-2
| { | ||
| "name": "@themes/react", | ||
| "version": "0.0.33", | ||
| "version": "0.0.34", | ||
| "description": "", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
| "devDependencies": { | ||
| "@themes/scheme": "^0.0.33", | ||
| "@themes/scheme": "^0.0.34", | ||
| "@types/react-test-renderer": "^16.9.1", | ||
@@ -27,0 +27,0 @@ "react-test-renderer": "^16.12.0" |
| import { useState, useEffect } from 'react' | ||
| export function useMatchMedia(query: string): boolean { | ||
| if (typeof window === 'undefined') { | ||
| if (typeof matchMedia !== 'function') { | ||
| return false | ||
@@ -6,0 +6,0 @@ } |
Sorry, the diff of this file is not supported yet
186988
0.64%