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

[42069] thisyahlen/chore: code cleanup and change to WalletText #10744

Merged

Conversation

thisyahlen-deriv
Copy link
Contributor

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

Changes:

  1. Code cleanup
  2. Add WalletText to replace all p, span and h1 tags
  3. Remove text styles
  4. Add line-height to WalletText

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 17, 2023 8:26am

children: React.ReactNode;
color?: 'black' | 'error' | 'general' | 'primary' | 'success' | 'warning' | 'white';
children: ReactNode;
color?: CSSProperties['color'] | 'error' | 'general' | 'primary' | 'success' | 'warning';
Copy link
Contributor

Choose a reason for hiding this comment

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

@thisyahlen-deriv what about colors black, blue, white which still exist in scss file, please, add these colors to the type. Also, JFYI, I added red color with value #ff444f because I needed it for onboarding title

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Black, blue, white, red, purple and all generic colors will come from CSSProperties['color']. 😸

Copy link
Contributor

Choose a reason for hiding this comment

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

@thisyahlen-deriv got it, didn't notice it, nice 👍

@coveralls
Copy link

coveralls commented Oct 17, 2023

Coverage Status

coverage: 25.976%. remained the same when pulling 4537384 on thisyahlen-deriv:thisyahlen/code_cleanup into 19baca9 on binary-com:master.

@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/10744](https://github.com/binary-com/deriv-app/pull/10744)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-thisyahlen-deriv-thisyahlen-codecleanup.binary.sx?qa_server=red.binaryws.com&app_id=23888
    - **Original**: https://deriv-app-git-fork-thisyahlen-deriv-thisyahlen-codecleanup.binary.sx
- **App ID**: `23888`

@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 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-thisyahlen-deriv-thisyahlen-codecleanup.binary.sx/

@sonarcloud
Copy link

sonarcloud bot commented Oct 17, 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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@yashim-deriv yashim-deriv merged commit c949695 into binary-com:master Oct 17, 2023
5 of 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.

4 participants