aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/services/content/ConnectionLostBanner.tsx
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-28 13:48:21 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-28 13:48:21 +0530
commit99ca310c73024b51fed1f3077375eed7827f2c20 (patch)
tree2bd15986f448129a2291acba90ccc6bf68a233e0 /src/components/services/content/ConnectionLostBanner.tsx
parentDisable in-app auto-updates for portable windows installation (fixes #1088) (... (diff)
downloadferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.gz
ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.zst
ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.zip
Fix issues reported by sonarqube linter
Diffstat (limited to 'src/components/services/content/ConnectionLostBanner.tsx')
-rw-r--r--src/components/services/content/ConnectionLostBanner.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/services/content/ConnectionLostBanner.tsx b/src/components/services/content/ConnectionLostBanner.tsx
index 88731f3b9..7040337f0 100644
--- a/src/components/services/content/ConnectionLostBanner.tsx
+++ b/src/components/services/content/ConnectionLostBanner.tsx
@@ -21,10 +21,11 @@ const messages = defineMessages({
21 }, 21 },
22}); 22});
23 23
24const buttonTransition = 24const buttonTransition = window?.matchMedia(
25 window && window.matchMedia('(prefers-reduced-motion: no-preference)') 25 '(prefers-reduced-motion: no-preference)',
26 ? 'opacity 0.25s' 26)
27 : 'none'; 27 ? 'opacity 0.25s'
28 : 'none';
28 29
29const styles = theme => ({ 30const styles = theme => ({
30 root: { 31 root: {