Skip to content

Commit 3afc382

Browse files
authored
Merge pull request #1202 from StoDevX/navigate-not-push
Call .navigate, not .push, in Settings
2 parents 6b9fcdc + 8395cde commit 3afc382

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/views/settings/sections/login-token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TokenLoginSection extends React.Component {
1919
}
2020

2121
logIn = () => {
22-
this.props.navigation.push('SISLoginView', {
22+
this.props.navigation.navigate('SISLoginView', {
2323
onLoginComplete: this.props.logIn,
2424
})
2525
}

source/views/settings/sections/odds-and-ends.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class OddsAndEndsSection extends React.Component {
1717
}
1818

1919
onPressButton = (id: string) => {
20-
this.props.navigation.push(id)
20+
this.props.navigation.navigate(id)
2121
}
2222

2323
onCreditsButton = () => this.onPressButton('CreditsView')

source/views/settings/sections/support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class SupportSection extends React.Component {
1313
props: TopLevelViewPropsType
1414

1515
onPressButton = (id: string) => {
16-
this.props.navigation.push(id)
16+
this.props.navigation.navigate(id)
1717
}
1818

1919
getDeviceInfo = () => `

0 commit comments

Comments
 (0)