Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulnr7 committed Dec 27, 2024
1 parent bbf3b8c commit 1248ecb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
7 changes: 6 additions & 1 deletion apps/wallet-mobile/src/legacy/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ export const useNavigateTo = () => {
const navigation = useNavigation<StackNavigationProp<DashboardRoutes>>()

return {
stakingCenter: () => navigation.navigate('staking-center', {screen: 'staking-center-main'}),
stakingCenter: () => {
navigation.navigate('staking-dashboard', {
screen: 'staking-center',
params: {screen: 'staking-center-main'},
})
},
submittedTx: () => navigation.navigate('staking-submitted-tx'),
failedTx: () => navigation.navigate('staking-failed-tx'),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const SubmittedTxScreen = () => {
<Space fill />

<Actions>
<Button onPress={navigateTo.submittedTx} title={strings.submittedTxButton} style={styles.button} />
<Button onPress={navigateTo.stakingCenter} title={strings.submittedTxButton} style={styles.button} />
</Actions>
</SafeArea>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"defaultMessage": "!!!Go to Staking Center",
"file": "src/legacy/Dashboard/Dashboard.tsx",
"start": {
"line": 232,
"line": 237,
"column": 23,
"index": 7513
"index": 7591
},
"end": {
"line": 235,
"line": 240,
"column": 3,
"index": 7646
"index": 7724
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"start": {
"line": 92,
"column": 20,
"index": 2375
"index": 2372
},
"end": {
"line": 95,
"column": 3,
"index": 2476
"index": 2473
}
},
{
Expand All @@ -21,12 +21,12 @@
"start": {
"line": 96,
"column": 19,
"index": 2497
"index": 2494
},
"end": {
"line": 99,
"column": 3,
"index": 2654
"index": 2651
}
},
{
Expand All @@ -36,12 +36,12 @@
"start": {
"line": 100,
"column": 21,
"index": 2677
"index": 2674
},
"end": {
"line": 103,
"column": 3,
"index": 2766
"index": 2763
}
}
]

0 comments on commit 1248ecb

Please sign in to comment.