mirror of
https://github.com/maputnik/editor.git
synced 2026-05-05 07:40:02 +00:00
Migration of jsx files to tsx 2 (#850)
This is to continue the work of migrating all the jsx files into tsx files. The MO is basically described here: #848. About 7 files to go...
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import throttle from 'lodash.throttle'
|
||||
|
||||
export default {
|
||||
// Throttle for 3 seconds so when a user enables it they don't have to refresh the page.
|
||||
reducedMotionEnabled: throttle(() => {
|
||||
return window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
||||
}, 3000)
|
||||
}
|
||||
// Throttle for 3 seconds so when a user enables it they don't have to refresh the page.
|
||||
const reducedMotionEnabled = throttle(() => {
|
||||
return window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
||||
}, 3000)
|
||||
|
||||
export { reducedMotionEnabled }
|
||||
|
||||
Reference in New Issue
Block a user