-
Notifications
You must be signed in to change notification settings - Fork 305
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
[P2PS] / Ameerul / P2PS-4586 Remove p2p package from deriv-app #17785
base: master
Are you sure you want to change the base?
[P2PS] / Ameerul / P2PS-4586 Remove p2p package from deriv-app #17785
Conversation
…iv-app into P2PS-4586-remove-p2p-package-from-deriv-app
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.
|
…86-remove-p2p-package-from-deriv-app
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-ameerul-deriv-p2ps-4586-remove-p2p-pa-7d2910.binary.sx/ |
useEffect(() => { | ||
if (is_p2p_enabled_success && !is_p2p_enabled && history.location.pathname.startsWith(routes.cashier_p2p)) { | ||
const url_params = new URLSearchParams(history.location.search); | ||
const advert_id = url_params.get('advert_id'); | ||
|
||
history.push(routes.cashier_deposit); | ||
|
||
if (advert_id) { | ||
if (is_virtual) { | ||
toggleReadyToDepositModal(); | ||
} else { | ||
error.setErrorMessage({ | ||
code: 'ShareMyAdsError', | ||
message: | ||
currency !== 'USD' && is_svg |
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.
this is all related to share my ads edge cases, so this can be removed. here is the figma file: https://www.figma.com/design/4MOUx8arWrBnUJvA3LufAh/branch/bTQkniOz9NeT3fXVFXs1Ns/P2P---My-ads?node-id=21750-322071&node-type=instance&t=g2DYm5qkh9mhZwf7-0
@@ -43,8 +35,6 @@ const CashierOnboardingP2PCard: React.FC = observer(() => { | |||
history.push('/cashier/p2p'); | |||
}; | |||
|
|||
if (!should_show_p2p_card) return null; |
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.
removed any logic that checks whether or not we should display p2p in the toggle-menu-drawer under cashier or under cashier tabs. This is because we already handle if the user can view p2p or not within the standalone application already. Also we should still show p2p exists, even if the user can't use it, this was an earlier suggestion from jy a long time back, since how will users know certain applications exist within deriv if we never see it
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 will also need to remove the deep linking in apple-app-site-association and assetslinks files after we release the BE card.
Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.