chore: naming

This commit is contained in:
GleidsonDaniel 2024-02-20 18:01:08 -03:00
parent 04dd2ac162
commit 6b62db7198
2 changed files with 4 additions and 4 deletions

View File

@ -465,7 +465,7 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
{issuesWithNotifications ? (
<HeaderButton.Item
iconName='notification-disabled'
onPress={this.goPushTroubleshoot}
onPress={this.navigateToPushTroubleshootView}
testID='rooms-list-view-push-troubleshoot'
color={themes[theme].fontDanger}
/>
@ -787,7 +787,7 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
}
};
goPushTroubleshoot = () => {
navigateToPushTroubleshootView = () => {
const { navigation, isMasterDetail } = this.props;
if (isMasterDetail) {
navigation.navigate('ModalStackNavigator', { screen: 'PushTroubleshootView' });

View File

@ -71,7 +71,7 @@ const UserNotificationPreferencesView = () => {
}
};
const goPushTroubleshoot = () => {
const navigateToPushTroubleshootView = () => {
if (isMasterDetail) {
navigation.navigate('ModalStackNavigator', { screen: 'PushTroubleshootView' });
} else {
@ -116,7 +116,7 @@ const UserNotificationPreferencesView = () => {
<List.Separator />
<List.Item
title='Troubleshooting'
onPress={goPushTroubleshoot}
onPress={navigateToPushTroubleshootView}
testID='user-notification-preference-view-troubleshooting'
showActionIndicator
/>