Skip to content

Commit

Permalink
Add back userSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 12, 2023
1 parent b5f0dfa commit 1033b3e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions packages/desktop-client/src/components/budget/MobileBudgetTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,10 @@ const ExpenseCategory = memo(function ExpenseCategory({
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
userSelect: 'none',
}}
data-testid="category-name"
{...getLongPressEvents({
onPointerDown: e => e.preventDefault(),
})}
{...getLongPressEvents()}
>
{category.name}
</Text>
Expand Down Expand Up @@ -583,11 +582,10 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents({
onPointerDown: e => e.preventDefault(),
})}
{...getLongPressEvents()}
>
{group.name}
</Text>
Expand Down Expand Up @@ -800,11 +798,10 @@ const IncomeGroupTotals = memo(function IncomeGroupTotals({
style={{
...styles.smallText,
...nameTextStyle,
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents({
onPointerDown: e => e.preventDefault(),
})}
{...getLongPressEvents()}
>
{group.name}
</Text>
Expand Down Expand Up @@ -962,11 +959,10 @@ const IncomeCategory = memo(function IncomeCategory({
...styles.smallText,
...nameTextStyle,
...styles.underlinedText,
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents({
onPointerDown: e => e.preventDefault(),
})}
{...getLongPressEvents()}
>
{category.name}
</Text>
Expand Down

0 comments on commit 1033b3e

Please sign in to comment.