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

mobile/1649 - feat:use context menu for information about unregistered username instead screen #1985

Merged
merged 4 commits into from
Oct 20, 2023

Conversation

Kacper-RF
Copy link
Contributor

@Kacper-RF Kacper-RF commented Oct 19, 2023

Pull Request Checklist

  • I have linked this PR to related GitHub issue.
  • I have updated the CHANGELOG.md file with relevant changes (the file is located at the root of monorepo).

(Optional) Mobile checklist

Please ensure you completed the following checks if you did any changes to the mobile package:

  • I have run e2e tests for mobile
  • I have updated base screenshots for visual regression tests

image

</View>
)}

{unregisteredUsername && username && (
Copy link
Contributor

Choose a reason for hiding this comment

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

This is wrong. ContextMenu component was meant to be universal and here you introduced the explicit conditional. Use an existing hint prop or add another one if you really have to but make it "label", "description" or something like that. Also try to never render the contents of the component conditionally otherwise it'll soon get messy and overcomplicated

Copy link
Contributor

@siepra siepra left a comment

Choose a reason for hiding this comment

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

I'd like the ContextMenu component to stay unaware of the provided content

@siepra
Copy link
Contributor

siepra commented Oct 19, 2023

I changed the appearance

Zrzut ekranu 2023-10-19 o 14 51 25

@Kacper-RF Kacper-RF merged commit a3a0aa6 into develop Oct 20, 2023
10 of 11 checks passed
@siepra siepra deleted the mobile/1649 branch October 23, 2023 08:11
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