Front: Settings Navigator: Allow passing screen name as props

This commit is contained in:
Arthur Jamet
2023-06-09 11:51:17 +01:00
parent 242e67edaa
commit 87dab44ad0
2 changed files with 15 additions and 5 deletions
+1 -2
View File
@@ -89,8 +89,7 @@ const ProfileView = () => {
<PlayerStats/>
<Box w="10%" paddingY={10} paddingLeft={5} paddingRight={50} zIndex={1}>
<TextButton
onPress={() => navigation.navigate('Settings')}
style={{margin: 10}}
onPress={() => navigation.navigate('Settings', { screen: 'Profile' })}
translate={{ translationKey: 'settingsBtn' }}
/>
</Box>