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

Nft receive feature #366

Merged
merged 5 commits into from
Jan 28, 2025
Merged

Nft receive feature #366

merged 5 commits into from
Jan 28, 2025

Conversation

DRadmir
Copy link
Contributor

@DRadmir DRadmir commented Jan 27, 2025

Receive button (+) has been added to Collections flow.

collage_result

wallet.isMultiCoins && !filterModel.chainsFilter.isEmpty
case .collections: false
}
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

Use exhaustive switch

@@ -11,6 +11,9 @@ public struct CollectionsNavigationStack: View {
@Environment(\.navigationState) private var navigationState
@Environment(\.nftService) private var nftService
@Environment(\.deviceService) private var deviceService
@Environment(\.walletsService) private var walletsService

@State private var isPresentingSelectType: SelectAssetType?
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@State private var isPresentingSelectType: SelectAssetType?
@State private var isPresentingSelectAssetType: SelectAssetType?

@@ -20,14 +20,20 @@ public struct NFTScene: View {
]
}

@Binding var isPresentingSelectType: SelectAssetType?
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@Binding var isPresentingSelectType: SelectAssetType?
@Binding var isPresentingSelectType: SelectAssetType?

No need to include it here, navigation stack should handle it. toolbar should just call model.selectAssetType. and then communicate this to the navigation stack

@gemcoder21 gemcoder21 merged commit 53c46dd into main Jan 28, 2025
@gemcoder21 gemcoder21 deleted the nft-receive-feature branch January 28, 2025 01:33
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.

2 participants