-
Notifications
You must be signed in to change notification settings - Fork 379
chore:Fix tap twice for manage account #9562
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
chore:Fix tap twice for manage account #9562
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-suisin-deriv-suisin-wall1376taptwicef-8c9c9f.binary.sx/ |
refSetter?: RefObject<T> | null, | ||
should_prevent_bubbling?: boolean | ||
) => { | ||
const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); |
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.
is it possible to use isMobile
from stores/shared/hook?
i saw isMobile
already defined somewhere..
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.
We can't import isMobile from stores since the components package doesn't have any stores hook implemented inside
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.
I think you can use IsMobile
from shared package for the time being till components package is exposed to stores
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.
Reuse isMobileOs
from the shared package.
edfce2c
packages/core/src/App/Containers/Layout/header/trading-hub-header.jsx
Outdated
Show resolved
Hide resolved
…WALL1376/tap_twice_for_manage_account
…WALL1376/tap_twice_for_manage_account
Kudos, SonarCloud Quality Gate passed!
|
…WALL1376/tap_twice_for_manage_account
…WALL1376/tap_twice_for_manage_account
Kudos, SonarCloud Quality Gate passed!
|
* chore: test for mobile * chore: test out touchstart * chore: test use isMobile * chore: fix mobile double touch issue * chore: edit based on comments * chore: remove unused file * chore: add isMobileOs from @deriv/shared * chore: test changes on phone * chore: add React.useCallback to DefaultMobileLinks * chore: update to see mobile change * chore: revert back to previous code * chore: test in mobile * chore: check on mobile view
* chore: test for mobile * chore: test out touchstart * chore: test use isMobile * chore: fix mobile double touch issue * chore: edit based on comments * chore: remove unused file * chore: add isMobileOs from @deriv/shared * chore: test changes on phone * chore: add React.useCallback to DefaultMobileLinks * chore: update to see mobile change * chore: revert back to previous code * chore: test in mobile * chore: check on mobile view
Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.