-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add feature to delete unverified contact methods #54784
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0a78fbe
Add feature to delete unverified contact methods
Shahidullah-Muffakir a88ac96
Fix iOS modal issue by nesting ConfirmModal inside ValidateCodeAction…
Shahidullah-Muffakir c50cfc5
Merge branch 'main' of github.com:Expensify/App into fix/54626
Shahidullah-Muffakir 715d047
Dismiss keyboard when user clicks three-dot menu
Shahidullah-Muffakir 874605e
apply blurActiveElement() for web, Keyboard.dismiss() for native apps
Shahidullah-Muffakir 9ccb8bf
Hide keyboard when user clicks on three-dot menue, use blurActiveEle…
Shahidullah-Muffakir dedbbfd
Merge branch 'main' of github.com:Expensify/App into fix/54626
Shahidullah-Muffakir 32da5c6
Fix modal stacking issue by using Modal.close before opening delete c…
Shahidullah-Muffakir 5413f30
use threeDotsMenuItems.length for showing the threeDotMenu
Shahidullah-Muffakir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can the value of this prop be determined by the length of
threeDotsMenuItems
? ie. it should be TRUE when there are items in the array and FALSE when there are no items in the array? It seems unnecessary to have theshouldShowThreeDotsButton
prop.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.
Got it, I’ll update it based on threeDotsMenuItems.length as
shouldShowThreeDotsButton={threeDotsMenuItems.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.
@tgolen , after looking at it again, I realized that the three-dot menu only shows when the contact is not primary and not verified. If I use the
threeDotsMenuItems.length>0
, it would always show the button, so I guess we need this prop.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.
OK. If I follow that logic though, if the menu is not shown, why would it need to have any menu items at all? I would say, remove the menu items based on
the contact is not primary and not verified
and it should still work the same. Right?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.
Right, we can do that as well.
I added the
shouldShowThreeDotsButton
prop because it was already available in the props for theThreeDotsMenu
andHeaderWithBackButton
It seems we could use the same logic there as well, but that would need to update the
threeDotsMenuItems
in different pages