Skip to content
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

Merged
merged 9 commits into from
Jun 22, 2023

Conversation

michaeljscript
Copy link
Contributor

@michaeljscript michaeljscript commented May 25, 2023

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

@michaeljscript michaeljscript marked this pull request as draft May 26, 2023 13:56
@michaeljscript michaeljscript marked this pull request as ready for review May 31, 2023 16:52
Copy link
Member

@stackchain stackchain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⬆️

@michaeljscript michaeljscript self-assigned this Jun 21, 2023
@@ -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'),
Copy link
Member

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
Copy link
Member

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.

@stackchain stackchain merged commit 31c4f84 into develop Jun 22, 2023
4 checks passed
@stackchain stackchain deleted the feat/mat-navigate-back branch June 22, 2023 12:11
@stackchain stackchain mentioned this pull request Jun 30, 2023
89 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants