Skip to content

Commit cb1c316

Browse files
committed
Fix: Add missing sentryLabel prop to PressableWithFeedback
The ESLint rule requires all Pressable components to have a sentryLabel prop for Sentry tracking. Added the new SENTRY_LABEL constant for workspace expensify card list rows and applied it to the component.
1 parent 9c36f35 commit cb1c316

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/CONST/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8232,6 +8232,9 @@ const CONST = {
82328232
NEW_CHAT: {
82338233
SELECT_PARTICIPANT: 'NewChat-SelectParticipant',
82348234
},
8235+
WORKSPACE_EXPENSIFY_CARD: {
8236+
CARD_LIST_ROW: 'WorkspaceExpensifyCard-CardListRow',
8237+
},
82358238
},
82368239

82378240
DOMAIN: {

src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ function WorkspaceExpensifyCardListPage({route, cardsList, fundID}: WorkspaceExp
164164
role={CONST.ROLE.BUTTON}
165165
style={[styles.mh5, styles.br3, styles.mb2, styles.highlightBG]}
166166
accessibilityLabel="row"
167+
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE_EXPENSIFY_CARD.CARD_LIST_ROW}
167168
hoverStyle={[styles.hoveredComponentBG]}
168169
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_DETAILS.getRoute(policyID, item.cardID.toString()))}
169170
>

0 commit comments

Comments
 (0)