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

[69420] Refactor account ready modal to success modal #10740

Merged
merged 14 commits into from
Oct 18, 2023

Conversation

adrienne-deriv
Copy link
Contributor

@adrienne-deriv adrienne-deriv commented Oct 17, 2023

Changes:

Please provide a summary of the change.

  • Made account ready modal to be generic
  • Renamed account ready to success

Screenshots:

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Oct 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Oct 18, 2023 7:28am

description: string;
marketType: Exclude<NonNullable<ReturnType<typeof useSortedMT5Accounts>['data']>[number]['market_type'], undefined>;
renderButton: () => ReactNode;
title: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made success modal to render the buttons, because there can be alot of button variants:
Screenshot 2023-10-17 at 2 39 30 PM

@adrienne-deriv adrienne-deriv marked this pull request as ready for review October 17, 2023 06:39
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/10740](https://github.com/binary-com/deriv-app/pull/10740)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-adrienne-deriv-succes-modal-props.binary.sx?qa_server=red.binaryws.com&app_id=23804
    - **Original**: https://deriv-app-git-fork-adrienne-deriv-succes-modal-props.binary.sx
- **App ID**: `23804`

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 15
🟧 Accessibility 88
🟢 Best practices 92
🟢 SEO 92
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-succes-modal-props.binary.sx/

<div className='wallets-success__info__text--type'>
{marketTypeToTitleMapper[marketType]} ({landingCompanyName})
</div>
<div className='wallets-success__info__text--wallet'>{data?.currency} Wallet</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can wrap this with WalletText

{marketTypeToTitleMapper[marketType]} ({landingCompanyName})
</div>
<div className='wallets-success__info__text--wallet'>{data?.currency} Wallet</div>
<div className='wallets-success__info__text--amount'>{data?.display_balance} USD</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

This too

@coveralls
Copy link

coveralls commented Oct 17, 2023

Coverage Status

coverage: 25.961%. remained the same when pulling 9b09f0f on adrienne-deriv:succes-modal-props into 6d8fa27 on binary-com:master.

@sonarcloud
Copy link

sonarcloud bot commented Oct 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@yashim-deriv yashim-deriv merged commit 01398de into binary-com:master Oct 18, 2023
6 checks passed
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.

5 participants