diff --git a/src/pages/workspace/WorkspaceMembersPage.tsx b/src/pages/workspace/WorkspaceMembersPage.tsx index 26e90ab626e5..70a71a0a0fb7 100644 --- a/src/pages/workspace/WorkspaceMembersPage.tsx +++ b/src/pages/workspace/WorkspaceMembersPage.tsx @@ -677,7 +677,9 @@ function WorkspaceMembersPage({personalDetails, route, policy, currentUserPerson disableKeyboardShortcuts={removeMembersConfirmModalVisible} headerMessage={getHeaderMessage()} headerContent={!shouldUseNarrowLayout && getHeaderContent()} - onSelectRow={(item) => {selectionMode?.isEnabled ? (!item.isDisabledCheckbox && toggleUser(item?.accountID)):(setShouldPreserveSelection(true),openMemberDetails(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? !item.isDisabledCheckbox && toggleUser(item?.accountID) : (setShouldPreserveSelection(true), openMemberDetails(item)); + }} shouldSingleExecuteRowSelect={!isPolicyAdmin} onCheckboxPress={(item) => toggleUser(item.accountID)} onSelectAll={() => toggleAllUsers(data)} diff --git a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx index f1792beea4d1..7559a31f85f7 100644 --- a/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx +++ b/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx @@ -412,7 +412,9 @@ function WorkspaceCategoriesPage({route}: WorkspaceCategoriesPageProps) { onTurnOnSelectionMode={(item) => item && toggleCategory(item)} sections={[{data: categoryList, isDisabled: false}]} onCheckboxPress={toggleCategory} - onSelectRow={(item) => {selectionMode?.isEnabled ? toggleCategory(item): (setShouldPreserveSelection(true),navigateToCategorySettings(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? toggleCategory(item) : (setShouldPreserveSelection(true), navigateToCategorySettings(item)); + }} shouldPreventDefaultFocusOnSelectRow={!DeviceCapabilities.canUseTouchScreen()} onSelectAll={toggleAllCategories} ListItem={TableListItem} diff --git a/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx b/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx index 97198c8e25c2..9e60d2d52413 100644 --- a/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx +++ b/src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx @@ -324,7 +324,9 @@ function PolicyDistanceRatesPage({ onTurnOnSelectionMode={(item) => item && toggleRate(item)} sections={[{data: distanceRatesList, isDisabled: false}]} onCheckboxPress={toggleRate} - onSelectRow={(item) => {selectionMode?.isEnabled ? toggleRate(item):(setShouldPreserveSelection(true),openRateDetails(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? toggleRate(item) : (setShouldPreserveSelection(true), openRateDetails(item)); + }} onSelectAll={toggleAllRates} onDismissError={dismissError} ListItem={TableListItem} diff --git a/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx b/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx index aeefbb16c036..d7cff38af98f 100644 --- a/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx +++ b/src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx @@ -306,7 +306,9 @@ function WorkspaceReportFieldsPage({ onTurnOnSelectionMode={(item) => item && updateSelectedReportFields(item)} sections={reportFieldsSections} onCheckboxPress={updateSelectedReportFields} - onSelectRow={(item) => {selectionMode?.isEnabled ? updateSelectedReportFields(item):(setShouldPreserveSelection(true),navigateToReportFieldsSettings(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? updateSelectedReportFields(item) : (setShouldPreserveSelection(true), navigateToReportFieldsSettings(item)); + }} onSelectAll={toggleAllReportFields} ListItem={TableListItem} customListHeader={getCustomListHeader()} diff --git a/src/pages/workspace/tags/WorkspaceTagsPage.tsx b/src/pages/workspace/tags/WorkspaceTagsPage.tsx index 6e590fd2e969..247faf48dab2 100644 --- a/src/pages/workspace/tags/WorkspaceTagsPage.tsx +++ b/src/pages/workspace/tags/WorkspaceTagsPage.tsx @@ -423,7 +423,9 @@ function WorkspaceTagsPage({route}: WorkspaceTagsPageProps) { onTurnOnSelectionMode={(item) => item && toggleTag(item)} sections={[{data: tagList, isDisabled: false}]} onCheckboxPress={toggleTag} - onSelectRow={(item) => {selectionMode?.isEnabled ? toggleTag(item): (setShouldPreserveSelection(true),navigateToTagSettings(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? toggleTag(item) : (setShouldPreserveSelection(true), navigateToTagSettings(item)); + }} shouldSingleExecuteRowSelect={!canSelectMultiple} onSelectAll={toggleAllTags} ListItem={TableListItem} diff --git a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx index 3e05bc62f736..d54e6fc94f12 100644 --- a/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx +++ b/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx @@ -315,7 +315,9 @@ function WorkspaceTaxesPage({ onTurnOnSelectionMode={(item) => item && toggleTax(item)} sections={[{data: taxesList, isDisabled: false}]} onCheckboxPress={toggleTax} - onSelectRow={(item) => {selectionMode?.isEnabled ? toggleTax(item):(setShouldPreserveSelection(true),navigateToEditTaxRate(item))}} + onSelectRow={(item) => { + selectionMode?.isEnabled ? toggleTax(item) : (setShouldPreserveSelection(true), navigateToEditTaxRate(item)); + }} onSelectAll={toggleAllTaxes} ListItem={TableListItem} customListHeader={getCustomListHeader()}