From a1b6ac7f3eafede615a9766a7b4a1468eec682da Mon Sep 17 00:00:00 2001 From: Philip Okugbe Date: Wed, 27 Nov 2024 02:32:12 +0000 Subject: [PATCH] fix: close space selection popover onClickOutside (#485) --- .../src/features/space/components/sidebar/switch-space.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/client/src/features/space/components/sidebar/switch-space.tsx b/apps/client/src/features/space/components/sidebar/switch-space.tsx index d428dfe1..8009af0f 100644 --- a/apps/client/src/features/space/components/sidebar/switch-space.tsx +++ b/apps/client/src/features/space/components/sidebar/switch-space.tsx @@ -12,7 +12,6 @@ interface SwitchSpaceProps { } export function SwitchSpace({ spaceName, spaceSlug }: SwitchSpaceProps) { - const [opened, { close, open, toggle }] = useDisclosure(false); const navigate = useNavigate(); const handleSelect = (value: string) => { @@ -28,7 +27,6 @@ export function SwitchSpace({ spaceName, spaceSlug }: SwitchSpaceProps) { position="bottom" withArrow shadow="md" - opened={opened} >