Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ChavdaSachin committed Sep 26, 2024
1 parent a4ec3c0 commit af99b45
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/pages/workspace/WorkspaceMembersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 681 in src/pages/workspace/WorkspaceMembersPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 681 in src/pages/workspace/WorkspaceMembersPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
shouldSingleExecuteRowSelect={!isPolicyAdmin}
onCheckboxPress={(item) => toggleUser(item.accountID)}
onSelectAll={() => toggleAllUsers(data)}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 416 in src/pages/workspace/categories/WorkspaceCategoriesPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 416 in src/pages/workspace/categories/WorkspaceCategoriesPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
shouldPreventDefaultFocusOnSelectRow={!DeviceCapabilities.canUseTouchScreen()}
onSelectAll={toggleAllCategories}
ListItem={TableListItem}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 328 in src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 328 in src/pages/workspace/distanceRates/PolicyDistanceRatesPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
onSelectAll={toggleAllRates}
onDismissError={dismissError}
ListItem={TableListItem}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 310 in src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 310 in src/pages/workspace/reportFields/WorkspaceReportFieldsPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
onSelectAll={toggleAllReportFields}
ListItem={TableListItem}
customListHeader={getCustomListHeader()}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/workspace/tags/WorkspaceTagsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 427 in src/pages/workspace/tags/WorkspaceTagsPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 427 in src/pages/workspace/tags/WorkspaceTagsPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
shouldSingleExecuteRowSelect={!canSelectMultiple}
onSelectAll={toggleAllTags}
ListItem={TableListItem}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/workspace/taxes/WorkspaceTaxesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Check failure on line 319 in src/pages/workspace/taxes/WorkspaceTaxesPage.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Expected an assignment or function call and instead saw an expression

Check failure on line 319 in src/pages/workspace/taxes/WorkspaceTaxesPage.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

Expected an assignment or function call and instead saw an expression
}}
onSelectAll={toggleAllTaxes}
ListItem={TableListItem}
customListHeader={getCustomListHeader()}
Expand Down

0 comments on commit af99b45

Please sign in to comment.