From 6392c6d867dcb401fe1fa592c51997dd2e36256d Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Fri, 5 Apr 2024 13:35:46 +0200 Subject: [PATCH 1/2] removing duplicated variable --- src/components/WorkspaceSwitcherButton.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/WorkspaceSwitcherButton.tsx b/src/components/WorkspaceSwitcherButton.tsx index e12afaa77dd0..1cbe76039b7f 100644 --- a/src/components/WorkspaceSwitcherButton.tsx +++ b/src/components/WorkspaceSwitcherButton.tsx @@ -23,8 +23,6 @@ type WorkspaceSwitcherButtonProps = WorkspaceSwitcherButtonOnyxProps; function WorkspaceSwitcherButton({policy}: WorkspaceSwitcherButtonProps) { const {translate} = useLocalize(); const theme = useTheme(); - const pressableRef = useRef(); - const pressableRef = useRef(null); const {source, name, type} = useMemo(() => { From a413b351167980444153f6843b331113deb4ad9f Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Fri, 5 Apr 2024 13:39:13 +0200 Subject: [PATCH 2/2] removing duplicated property --- src/components/WorkspaceSwitcherButton.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/WorkspaceSwitcherButton.tsx b/src/components/WorkspaceSwitcherButton.tsx index 1cbe76039b7f..8513b990c71a 100644 --- a/src/components/WorkspaceSwitcherButton.tsx +++ b/src/components/WorkspaceSwitcherButton.tsx @@ -41,7 +41,6 @@ function WorkspaceSwitcherButton({policy}: WorkspaceSwitcherButtonProps) { return (