aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/components/WorkspaceSwitchingIndicator.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/features/workspaces/components/WorkspaceSwitchingIndicator.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/features/workspaces/components/WorkspaceSwitchingIndicator.tsx')
-rw-r--r--src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx
index c9af22c96..e1cc0f785 100644
--- a/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx
+++ b/src/features/workspaces/components/WorkspaceSwitchingIndicator.tsx
@@ -14,10 +14,11 @@ const messages = defineMessages({
14 }, 14 },
15}); 15});
16 16
17const wrapperTransition = 17const wrapperTransition = window?.matchMedia(
18 window && window.matchMedia('(prefers-reduced-motion: no-preference)') 18 '(prefers-reduced-motion: no-preference)',
19 ? 'width 0.5s ease' 19)
20 : 'none'; 20 ? 'width 0.5s ease'
21 : 'none';
21 22
22const styles = theme => ({ 23const styles = theme => ({
23 wrapper: { 24 wrapper: {