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

fix: show add secret button only on home screen #841

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

guilhermelimak
Copy link
Contributor

I removed the portal wrapping the FAB.Group component so it's rendered at the page where it's being used but according to the react-native-paper docs it could cause z-index issues. I did try a couple of different scenarios (long list of secrets scrolling under the button, trying to use the buttons and dropdowns while close to the FAB) and it all seemed to work fine.

If that's not an acceptable solution I can try to investigate deeper since the logic to show/hide it seems correct (it uses react-navigation's isFocused hook to check whether a page is focused and shows the button only if the homepage is focused).

Closes #831.

@simoneb
Copy link
Member

simoneb commented Nov 16, 2022

ok so the build error is caused by #844. we probably need to do some wrapping in quotes or something

Copy link
Member

@simoneb simoneb left a comment

Choose a reason for hiding this comment

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

meanwhile approving to avoid blocking, but we should find a solution for the eas error

@guilhermelimak guilhermelimak changed the title fix: show "add secret" button only on home screen fix: show add secret button only on home screen Nov 16, 2022
Remove portal wrapping `Add secret` FAB.
Update test snapshots.
@guilhermelimak guilhermelimak force-pushed the feat/show-add-secret-only-on-homepage branch from 1a42369 to cab24bf Compare November 16, 2022 17:15
@guilhermelimak guilhermelimak merged commit 72d5d88 into master Nov 16, 2022
@guilhermelimak guilhermelimak deleted the feat/show-add-secret-only-on-homepage branch November 16, 2022 17:49
@github-actions github-actions bot mentioned this pull request Nov 21, 2022
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.

The "+" (plus) button in the settings page should be removed
2 participants