-
Notifications
You must be signed in to change notification settings - Fork 300
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
Farzin/PRODQA-921/Cashier dark mode issue #8700
Farzin/PRODQA-921/Cashier dark mode issue #8700
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-farzin-deriv-farzin-prodqa-921cashier-a95702.binary.sx/ |
const { | ||
traders_hub: { is_low_risk_cr_eu_real }, | ||
ui: { is_dark_mode_on }, | ||
} = useStore(); | ||
|
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.
it's not that important but just for having more consistency for our code style I'm asking this. I saw in this PR we are getting our data from store like this:
const {
common: { current_language },
} = useStore();
but here you actually changed the syntax. IMO the way you wrote it is more clear to understand , So I think we can discuss and agree on one of the formats for the future
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.
@shayan-deriv Yeah agree with you, I personally try to avoid nested object destructuring cause it will be hard to follow by eye. It similar to nested ternary operator situation 👀
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.
LGTM
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #8700 +/- ##
=======================================
Coverage 40.02% 40.02%
=======================================
Files 212 212
Lines 4497 4497
Branches 1239 1239
=======================================
Hits 1800 1800
Misses 2465 2465
Partials 232 232 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.
Screen.Recording.2023-05-23.at.12.23.59.PM.mov