Skip to content

Commit

Permalink
feature(tx-details): remove legacy confirm tx screens for send funnel
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Sep 22, 2024
1 parent 81d472e commit daecf73
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
3 changes: 0 additions & 3 deletions apps/wallet-mobile/src/features/Send/common/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ export const useNavigateTo = () => {
selectedTokens: () => navigation.navigate('send-list-amounts-to-send'),
addToken: () => navigation.navigate('send-select-token-from-list'),
startTx: () => navigation.navigate('send-start-tx'),
confirmTx: () => navigation.navigate('send-confirm-tx'),
editAmount: () => navigation.navigate('send-edit-amount'),
reader: () => navigation.navigate('scan-start', {insideFeature: 'send'}),
submittedTx: (txId: string) => navigation.navigate('send-submitted-tx', {txId}),
failedTx: () => navigation.navigate('send-failed-tx'),
startTxAfterReset: () =>
navigation.reset({
index: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ import {RequestSpecificAmountScreen} from '../Receive/useCases/RequestSpecificAm
import {CodeScannerButton} from '../Scan/common/CodeScannerButton'
import {ScanCodeScreen} from '../Scan/useCases/ScanCodeScreen'
import {ShowCameraPermissionDeniedScreen} from '../Scan/useCases/ShowCameraPermissionDeniedScreen/ShowCameraPermissionDeniedScreen'
import {ConfirmTxScreen} from '../Send/useCases/ConfirmTx/ConfirmTxScreen'
import {FailedTxScreen} from '../Send/useCases/ConfirmTx/FailedTx/FailedTxScreen'
import {SubmittedTxScreen} from '../Send/useCases/ConfirmTx/SubmittedTx/SubmittedTxScreen'
import {SelectTokenFromListScreen} from '../Send/useCases/ListAmountsToSend/AddToken/SelectTokenFromListScreen'
import {EditAmountScreen} from '../Send/useCases/ListAmountsToSend/EditAmount/EditAmountScreen'
import {ListAmountsToSendScreen} from '../Send/useCases/ListAmountsToSend/ListAmountsToSendScreen'
Expand Down Expand Up @@ -356,27 +353,6 @@ export const TxHistoryNavigator = () => {
)}
</Stack.Screen>

<Stack.Screen //
name="send-confirm-tx"
component={ConfirmTxScreen}
options={{
title: strings.confirmTitle,
...sendOptions(navigationOptions, color),
}}
/>

<Stack.Screen
name="send-submitted-tx"
component={SubmittedTxScreen}
options={{headerShown: false, gestureEnabled: false}}
/>

<Stack.Screen
name="send-failed-tx"
component={FailedTxScreen}
options={{headerShown: false, gestureEnabled: false}}
/>

<Stack.Screen //
name="scan-start"
component={ScanCodeScreen}
Expand Down
3 changes: 0 additions & 3 deletions apps/wallet-mobile/src/kernel/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ export type TxHistoryRoutes = {
'receive-specific-amount': undefined
'receive-multiple': undefined
'send-start-tx': undefined
'send-confirm-tx': undefined
'send-submitted-tx': {txId: string}
'send-failed-tx': undefined
'send-list-amounts-to-send': undefined
'send-edit-amount': undefined
'send-select-token-from-list': undefined
Expand Down

0 comments on commit daecf73

Please sign in to comment.