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

Suisin/Updated Sign up Modal Message #6126

Merged

Conversation

suisin-deriv
Copy link
Contributor

@suisin-deriv suisin-deriv commented Aug 8, 2022

Changes:

Please include a summary of the change and which issue is fixed below:

  • ...

When you need to add unit test

  • If this change disrupt current flow
  • If this change is adding new flow

When you need to add integration test

  • If components from external libraries are being used to define the flow, e.g. @deriv/components
  • If it relies on a very specific set of props with no default behavior for the current component.

Test coverage checklist (for reviewer)

  • Ensure utility / function has a test case
  • Ensure all the tests are passing

Type of change

  • Bug fix
  • New feature
  • [x ] Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Aug 8, 2022

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

Name Status Preview Updated
deriv-app ✅ Ready (Inspect) Visit Preview Aug 15, 2022 at 9:26AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2022

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/6126](https://github.com/binary-com/deriv-app/pull/6126)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-suisin-deriv-updatesignuppopupmodalmessage.binary.sx?qa_server=frontend.binaryws.com&app_id=23808
    - **Original**: https://deriv-app-git-fork-suisin-deriv-updatesignuppopupmodalmessage.binary.sx
- **App ID**: `23808`

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2022

Codecov Report

Merging #6126 (29c7600) into master (2487cca) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6126      +/-   ##
==========================================
- Coverage   21.48%   21.47%   -0.01%     
==========================================
  Files        1386     1386              
  Lines       31465    31473       +8     
  Branches     5363     5364       +1     
==========================================
  Hits         6760     6760              
- Misses      24321    24329       +8     
  Partials      384      384              
Impacted Files Coverage Δ
...nents/src/components/autocomplete/autocomplete.jsx 0.00% <0.00%> (ø)
...ainers/AccountSignupModal/account-signup-modal.jsx 0.00% <0.00%> (ø)
...ainers/CitizenshipModal/same-citizenship-modal.jsx 0.00% <ø> (ø)
...ontainers/SetResidenceModal/set-residence-form.jsx 0.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

jim-deriv
jim-deriv previously approved these changes Aug 8, 2022
}) => (
<div>
<Text as='p' className='account-signup__text'>
{localize('Are you a citizen of the same country where you live?')}
{localize('Are you a citizen of ')} {selectedCountry}?
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Can you use residence value?
  2. You need to make sure selected country is being translated using localize

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do it 🙏

mahdiyeh-deriv
mahdiyeh-deriv previously approved these changes Aug 9, 2022
yauheni-deriv
yauheni-deriv previously approved these changes Aug 9, 2022
farzin-deriv
farzin-deriv previously approved these changes Aug 9, 2022
matin-deriv
matin-deriv previously approved these changes Aug 10, 2022
farzin-deriv
farzin-deriv previously approved these changes Aug 11, 2022
mahdiyeh-deriv
mahdiyeh-deriv previously approved these changes Aug 11, 2022
hamid-deriv
hamid-deriv previously approved these changes Aug 11, 2022
hirad-deriv
hirad-deriv previously approved these changes Aug 11, 2022
@@ -70,6 +71,16 @@ const Autocomplete = React.memo(props => {
}
}, [list_items, has_updating_list]);

React.useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We are setting the active_index and input_value in the previous useEffect, isn't it better to add this condition to that useEffect instead of writing new one in order to not set those values twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try on that and see if it works. Thanks @mahdiyeh-fs 🙏

@sonarcloud
Copy link

sonarcloud bot commented Aug 15, 2022

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

@farrah-deriv farrah-deriv merged commit 1147568 into binary-com:master Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.