aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ui/toggle/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ui/toggle/index.tsx')
-rw-r--r--src/components/ui/toggle/index.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/ui/toggle/index.tsx b/src/components/ui/toggle/index.tsx
index 828941886..48f68943b 100644
--- a/src/components/ui/toggle/index.tsx
+++ b/src/components/ui/toggle/index.tsx
@@ -16,10 +16,11 @@ interface IProps
16 className?: string; 16 className?: string;
17} 17}
18 18
19const buttonTransition: string = 19const buttonTransition: string = window?.matchMedia(
20 window && window.matchMedia('(prefers-reduced-motion: no-preference)') 20 '(prefers-reduced-motion: no-preference)',
21 ? 'all .5s' 21)
22 : 'none'; 22 ? 'all .5s'
23 : 'none';
23 24
24const styles = (theme: Theme) => ({ 25const styles = (theme: Theme) => ({
25 toggle: { 26 toggle: {