diff --git a/src/CONST/index.ts b/src/CONST/index.ts index dfa2ef7ab86b..9669aaf0fe60 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8231,6 +8231,9 @@ const CONST = { NEW_CHAT: { SELECT_PARTICIPANT: 'NewChat-SelectParticipant', }, + WORKSPACE: { + TOGGLE_SETTINGS_ROW: 'Workspace-ToggleSettingsRow', + }, }, DOMAIN: { diff --git a/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx b/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx index f152c28ee39e..4921d6406d6e 100644 --- a/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx +++ b/src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx @@ -12,6 +12,7 @@ import Text from '@components/Text'; import useAccordionAnimation from '@hooks/useAccordionAnimation'; import useThemeStyles from '@hooks/useThemeStyles'; import Parser from '@libs/Parser'; +import CONST from '@src/CONST'; import type {Errors, PendingAction} from '@src/types/onyx/OnyxCommon'; import type IconAsset from '@src/types/utils/IconAsset'; @@ -193,9 +194,9 @@ function ToggleSettingOptionRow({ style={[styles.flexRow, styles.alignItemsCenter, styles.flex1]} onPress={shouldMakeContentPressable ? onPress : undefined} accessibilityLabel={title} - role="button" + role={shouldMakeContentPressable ? CONST.ROLE.BUTTON : CONST.ROLE.PRESENTATION} accessible={false} - interactive={!!shouldMakeContentPressable} + sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.TOGGLE_SETTINGS_ROW} > {contentArea}