Skip to content

Commit

Permalink
replace deprecated props after pulling main
Browse files Browse the repository at this point in the history
  • Loading branch information
getusha committed Oct 30, 2023
1 parent d22ed89 commit 2b8f115
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function MentionUserRenderer(props) {
event.preventDefault();
Navigation.navigate(navigationRoute);
}}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.LINK}
role={CONST.ACCESSIBILITY_ROLE.LINK}
accessibilityLabel={`/${navigationRoute}`}
>
<UserDetailsTooltip
Expand All @@ -79,7 +79,7 @@ function MentionUserRenderer(props) {
>
<Text
style={[styles.link, _.omit(props.style, 'color'), StyleUtils.getMentionStyle(isOurMention), {color: StyleUtils.getMentionTextColor(isOurMention)}]}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.LINK}
role={CONST.ACCESSIBILITY_ROLE.LINK}
testID="span"
href={`/${navigationRoute}`}
// eslint-disable-next-line react/jsx-props-no-spreading
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessagesRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function MessagesRow({messages, type, onClose, containerStyles, canDismiss}) {
<PressableWithoutFeedback
onPress={onClose}
style={[styles.touchableButtonImage]}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('common.close')}
>
<Icon src={Expensicons.Close} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/SingleOptionSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function SingleOptionSelector({options, selectedOptionKey, onSelectOption, trans
<PressableWithoutFeedback
style={styles.singleOptionSelectorRow}
onPress={() => onSelectOption(option)}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityState={{checked: selectedOptionKey === option.key}}
aria-checked={selectedOptionKey === option.key}
accessibilityLabel={option.label}
Expand Down
6 changes: 3 additions & 3 deletions src/pages/iou/ReceiptSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function ReceiptSelector({route, transactionID, iou, report}) {
{({openPicker}) => (
<PressableWithFeedback
accessibilityLabel={translate('receipt.chooseFile')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
onPress={() => {
openPicker({
onPicked: (file) => {
Expand All @@ -228,7 +228,7 @@ function ReceiptSelector({route, transactionID, iou, report}) {
)}
</AttachmentPicker>
<PressableWithFeedback
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('receipt.shutter')}
style={[styles.alignItemsCenter]}
onPress={capturePhoto}
Expand All @@ -239,7 +239,7 @@ function ReceiptSelector({route, transactionID, iou, report}) {
/>
</PressableWithFeedback>
<PressableWithFeedback
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
role={CONST.ACCESSIBILITY_ROLE.BUTTON}
accessibilityLabel={translate('receipt.flash')}
style={[styles.alignItemsEnd, !isTorchAvailable && styles.opacity0]}
onPress={toggleFlashlight}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceNewRoomPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function WorkspaceNewRoomPage(props) {
inputID="welcomeMessage"
label={translate('welcomeMessagePage.welcomeMessageOptional')}
accessibilityLabel={translate('welcomeMessagePage.welcomeMessageOptional')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
role={CONST.ACCESSIBILITY_ROLE.TEXT}
autoGrowHeight
maxLength={CONST.MAX_COMMENT_LENGTH}
autoCapitalize="none"
Expand Down

0 comments on commit 2b8f115

Please sign in to comment.