Skip to content

Commit

Permalink
Mobile: set userSelect: 'none'
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 12, 2023
1 parent c129fb4 commit 944d90a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ const ExpenseCategory = memo(function ExpenseCategory({
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
userSelect: 'none',
}}
data-testid="category-name"
{...getLongPressEvents()}
Expand Down Expand Up @@ -577,6 +578,7 @@ const ExpenseGroupTotals = memo(function ExpenseGroupTotals({
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
Expand Down Expand Up @@ -787,7 +789,11 @@ const IncomeGroupTotals = memo(function IncomeGroupTotals({
) : (
<View>
<Text
style={{ ...styles.smallText, ...nameTextStyle }}
style={{
...styles.smallText,
...nameTextStyle,
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
>
Expand Down Expand Up @@ -945,6 +951,7 @@ const IncomeCategory = memo(function IncomeCategory({
...styles.smallText,
...nameTextStyle,
...styles.underlinedText,
userSelect: 'none',
}}
data-testid="name"
{...getLongPressEvents()}
Expand Down

0 comments on commit 944d90a

Please sign in to comment.