Skip to content

Commit

Permalink
Role updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 12, 2023
1 parent 1033b3e commit f836460
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions packages/desktop-client/src/components/budget/MobileBudgetTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,8 @@ const ExpenseCategory = memo(function ExpenseCategory({
)}
</View>
) : (
<View style={{ flex: 1 }}>
<View role="button" {...getLongPressEvents()} style={{ flex: 1 }}>
<Text
role="button"
tabIndex={-1}
style={{
...styles.smallText,
Expand All @@ -358,7 +357,6 @@ const ExpenseCategory = memo(function ExpenseCategory({
userSelect: 'none',
}}
data-testid="category-name"
{...getLongPressEvents()}
>
{category.name}
</Text>
Expand Down Expand Up @@ -571,9 +569,8 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({
)}
</View>
) : (
<View style={{ flex: 1 }}>
<View role="button" {...getLongPressEvents()} style={{ flex: 1 }}>
<Text
role="button"
tabIndex={-1}
style={{
...styles.smallText,
Expand All @@ -585,7 +582,6 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
>
{group.name}
</Text>
Expand Down Expand Up @@ -791,17 +787,15 @@ const IncomeGroupTotals = memo(function IncomeGroupTotals({
)}
</View>
) : (
<View>
<View role="button" {...getLongPressEvents()}>
<Text
role="button"
tabIndex={-1}
style={{
...styles.smallText,
...nameTextStyle,
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
>
{group.name}
</Text>
Expand Down Expand Up @@ -951,9 +945,8 @@ const IncomeCategory = memo(function IncomeCategory({
)}
</View>
) : (
<View>
<View role="button" {...getLongPressEvents()}>
<Text
role="button"
tabIndex={-1}
style={{
...styles.smallText,
Expand All @@ -962,7 +955,6 @@ const IncomeCategory = memo(function IncomeCategory({
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
>
{category.name}
</Text>
Expand Down

0 comments on commit f836460

Please sign in to comment.