More jsx to tsx migration

This commit is contained in:
HarelM
2023-12-22 00:30:21 +02:00
parent 12def85771
commit af8caef9d3
8 changed files with 54 additions and 45 deletions
+6 -6
View File
@@ -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 }