From 2e1472b152c8f9ea7984e17ad7f3fce4dc6f4f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arkadiusz=20Chrab=C4=85szczewski?= Date: Wed, 28 Feb 2024 15:49:16 +0100 Subject: [PATCH] refactor: select all checkbox only in checkbox area --- .../SelectionList/BaseSelectionList.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/components/SelectionList/BaseSelectionList.tsx b/src/components/SelectionList/BaseSelectionList.tsx index f0fd096a9d95..5b5a67dc1e28 100644 --- a/src/components/SelectionList/BaseSelectionList.tsx +++ b/src/components/SelectionList/BaseSelectionList.tsx @@ -8,7 +8,6 @@ import Button from '@components/Button'; import Checkbox from '@components/Checkbox'; import FixedFooter from '@components/FixedFooter'; import OptionsListSkeletonView from '@components/OptionsListSkeletonView'; -import PressableWithFeedback from '@components/Pressable/PressableWithFeedback'; import SafeAreaConsumer from '@components/SafeAreaConsumer'; import SectionList from '@components/SectionList'; import Text from '@components/Text'; @@ -431,28 +430,19 @@ function BaseSelectionList( ) : ( <> {!headerMessage && canSelectMultiple && shouldShowSelectAll && ( - e.preventDefault() : undefined} - > + {customListHeader ?? ( {translate('workspace.people.selectAll')} )} - + )} {!headerMessage && !canSelectMultiple && customListHeader}