Skip to content

Commit

Permalink
Merge pull request #42347 from mananjadhav/xero-tracking-categories-f…
Browse files Browse the repository at this point in the history
…ixes

[Wave Collect][Xero] Tracking categories fixes
  • Loading branch information
lakchote authored May 20, 2024
2 parents 36ac388 + f74e05f commit f521fa5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/workspace/accounting/xero/XeroImportPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function XeroImportPage({policy}: WithPolicyProps) {
description: translate('workspace.xero.trackingCategories'),
action: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_XERO_TRACKING_CATEGORIES.getRoute(policyID)),
hasError: !!errorFields?.importTrackingCategories,
title: importTrackingCategories ? translate('workspace.accounting.importTypes.TAG') : translate('workspace.xero.notImported'),
title: importTrackingCategories ? translate('workspace.accounting.imported') : translate('workspace.xero.notImported'),
pendingAction: pendingFields?.importTrackingCategories,
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function XeroMapCostCentersToConfigurationPage({policy}: WithPolicyProps) {
sections={[{data: optionsList}]}
ListItem={RadioListItem}
onSelectRow={updateMapping}
initiallyFocusedOptionKey={optionsList.find((option) => option.isSelected)?.keyForList}
/>
</ConnectionLayout>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function XeroMapRegionsToConfigurationPage({policy}: WithPolicyProps) {
sections={[{data: optionsList}]}
ListItem={RadioListItem}
onSelectRow={updateMapping}
initiallyFocusedOptionKey={optionsList.find((option) => option.isSelected)?.keyForList}
/>
</ConnectionLayout>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function XeroTrackingCategoryConfigurationPage({policy}: WithPolicyProps) {
title={translate('workspace.accounting.import')}
switchAccessibilityLabel={translate('workspace.xero.trackingCategories')}
isActive={isSwitchOn}
wrapperStyle={styles.mv3}
onToggle={() =>
Connections.updatePolicyConnectionConfig(
policyID,
Expand Down

0 comments on commit f521fa5

Please sign in to comment.