Skip to content

Commit

Permalink
Merge pull request #37668 from dragnoir/37417-fix
Browse files Browse the repository at this point in the history
Fix: add spacing between long category name and category status
  • Loading branch information
puneetlath authored Mar 6, 2024
2 parents 2ff35c4 + 09a8ffd commit be716dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/workspace/categories/WorkspaceCategoriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP
isSelected: !!selectedCategories[value.name],
rightElement: (
<View style={styles.flexRow}>
<Text style={[styles.disabledText, styles.alignSelfCenter]}>{value.enabled ? translate('workspace.common.enabled') : translate('workspace.common.disabled')}</Text>
<Text style={[styles.textSupporting, styles.alignSelfCenter, styles.pl2, styles.label]}>
{value.enabled ? translate('workspace.common.enabled') : translate('workspace.common.disabled')}
</Text>
<View style={[styles.p1, styles.pl2]}>
<Icon
src={Expensicons.ArrowRight}
Expand All @@ -81,7 +83,7 @@ function WorkspaceCategoriesPage({policyCategories, route}: WorkspaceCategoriesP
</View>
),
})),
[policyCategories, selectedCategories, styles.alignSelfCenter, styles.disabledText, styles.flexRow, styles.p1, styles.pl2, theme.icon, translate],
[policyCategories, selectedCategories, styles.alignSelfCenter, styles.flexRow, styles.label, styles.p1, styles.pl2, styles.textSupporting, theme.icon, translate],
);

const toggleCategory = (category: PolicyForList) => {
Expand Down

0 comments on commit be716dd

Please sign in to comment.