diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-11 18:50:42 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-08-11 13:38:04 +0000 |
commit | 11c2b649388687570851fcb58ab59f5daaa3f194 (patch) | |
tree | 257acfbcc42e542978b67a1e4edccc87ca0be4a6 /packages/ui/src/infobox/index.tsx | |
parent | 5.6.1-nightly.22 [skip ci] (diff) | |
download | ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.tar.gz ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.tar.zst ferdium-app-11c2b649388687570851fcb58ab59f5daaa3f194.zip |
revert: fixing #1757 by commenting out partial fix
- Fixes issue with ferdi not starting up.
- Also adds some defensive checks for the same code in other
repeated locations.
Diffstat (limited to 'packages/ui/src/infobox/index.tsx')
-rw-r--r-- | packages/ui/src/infobox/index.tsx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packages/ui/src/infobox/index.tsx b/packages/ui/src/infobox/index.tsx index a6e4b3240..88cfdb620 100644 --- a/packages/ui/src/infobox/index.tsx +++ b/packages/ui/src/infobox/index.tsx | |||
@@ -44,13 +44,14 @@ const buttonStyles = (theme: Theme) => { | |||
44 | return styles; | 44 | return styles; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | let infoBoxTransition: string = 'none'; | 47 | const infoBoxTransition: string = 'none'; |
48 | let ctaTransition: string = 'none'; | 48 | const ctaTransition: string = 'none'; |
49 | 49 | ||
50 | if (window.matchMedia('(prefers-reduced-motion: no-preference)')) { | 50 | // TODO: Not sure why, but this location alone, the `dinwo` is not defined - and it throws an error thus aborting the startup sequence of ferdi |
51 | infoBoxTransition = 'all 0.5s'; | 51 | // if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { |
52 | ctaTransition = 'opacity 0.3s'; | 52 | // infoBoxTransition = 'all 0.5s'; |
53 | } | 53 | // ctaTransition = 'opacity 0.3s'; |
54 | // } | ||
54 | 55 | ||
55 | const styles = (theme: Theme) => ({ | 56 | const styles = (theme: Theme) => ({ |
56 | wrapper: { | 57 | wrapper: { |