-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(mat): Navigate to transaction start screen from token select #2480
Conversation
apps/wallet-mobile/src/features/Send/useCases/StartMultiTokenTx/StartMultiTokenTxScreen.tsx
Outdated
Show resolved
Hide resolved
...t-mobile/src/features/Send/useCases/ListAmountsToSend/AddToken/SelectTokenFromListScreen.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⬆️
@@ -189,6 +203,7 @@ const useNavigateTo = () => { | |||
addToken: () => navigation.navigate('send-select-token-from-list'), | |||
editAmount: () => navigation.navigate('send-edit-amount'), | |||
confirmTx: () => navigation.navigate('send-confirm-tx'), | |||
startTx: () => navigation.navigate('send-start-tx'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update and import from common.
@@ -24,7 +23,7 @@ export const StartMultiTokenTxScreen = () => { | |||
|
|||
const {targets, selectedTargetIndex, receiverChanged, memo, memoChanged, addressChanged} = useSend() | |||
const {address, amounts} = targets[selectedTargetIndex].entry | |||
const shouldOpenSelectToken = Object.keys(amounts).length === 0 | |||
const shouldOpenAddToken = Object.keys(amounts).length === 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad here, it should be using Amounts.toArray
helper, amounts must be manipulated with this helper always.
Resolves YOMO-515
Navigates to transaction start screen from asset select when the user has no selected assets and clicks on back. Otherwise, navigates to the list