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

george / rm78412 / repalce connect in withdrawal page #6809

Conversation

heorhi-deriv
Copy link
Contributor

Changes:

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

  • replace connect HOC with useStore hook in withdrawal page

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
  • 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 Oct 25, 2022

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

Name Status Preview Updated
deriv-app ✅ Ready (Inspect) Visit Preview Oct 26, 2022 at 7:14AM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 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/6809](https://github.com/binary-com/deriv-app/pull/6809)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-george-usynin-binary-78412repalce-con-0f8078.binary.sx?qa_server=frontend.binaryws.com&app_id=32814
    - **Original**: https://deriv-app-git-fork-george-usynin-binary-78412repalce-con-0f8078.binary.sx
- **App ID**: `32814`

@sonarcloud
Copy link

sonarcloud bot commented Oct 26, 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
No Duplication information No Duplication information

is_virtual: false,
verification_code: '',
verify_error: {},
let history, mockRootStore, setSideNotes;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can they have a type?

requestWithdraw: jest.fn(),
setBlockchainAddress: jest.fn(),
setWithdrawPercentageSelectorResult: jest.fn(),
let mockRootStore;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it have a type?

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let mockRootStore;
let mockRootStore: DeepPartial<TRootStore>;

setIsWithdrawConfirmed: jest.fn(),
resetWithrawForm: jest.fn(),
setIsCryptoTransactionsVisible: jest.fn(),
let mockRootStore;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let mockRootStore;
let mockRootStore: DeepPartial<TRootStore>;

@farrah-deriv farrah-deriv merged commit 9a62c68 into binary-com:develop Nov 11, 2022
adrienne-deriv pushed a commit to adrienne-deriv/deriv-app that referenced this pull request Nov 17, 2022
* refactor(withdraw): replace connect in crypto-withdraw-form, fix tests

* refactor(withdraw): repace connect in crypto-withdraw-receipt, fix tests

* refactor(withdraw): replace connect in wirhdraw, fix tests

* refactor(withdraw): replace connect in withdrawal-locked, fix tests

* refactor(withdraw): replace connect into withdrawal-verification-email, fix tests

* refactor(withdraw): replace connect into withdrawal, fix tests

* test(withdraw): refactor withdrawal-locked test

* fix(side-note): fix side_notes type

* fix(error types): fix error types

* test(withdraw): improve withdrawal test

* refactor(error types): refactor error types

* trigger build
adrienne-deriv pushed a commit to adrienne-deriv/deriv-app that referenced this pull request Nov 17, 2022
* refactor(withdraw): replace connect in crypto-withdraw-form, fix tests

* refactor(withdraw): repace connect in crypto-withdraw-receipt, fix tests

* refactor(withdraw): replace connect in wirhdraw, fix tests

* refactor(withdraw): replace connect in withdrawal-locked, fix tests

* refactor(withdraw): replace connect into withdrawal-verification-email, fix tests

* refactor(withdraw): replace connect into withdrawal, fix tests

* test(withdraw): refactor withdrawal-locked test

* fix(side-note): fix side_notes type

* fix(error types): fix error types

* test(withdraw): improve withdrawal test

* refactor(error types): refactor error types

* trigger build
adrienne-deriv pushed a commit to adrienne-deriv/deriv-app that referenced this pull request Nov 17, 2022
* refactor(withdraw): replace connect in crypto-withdraw-form, fix tests

* refactor(withdraw): repace connect in crypto-withdraw-receipt, fix tests

* refactor(withdraw): replace connect in wirhdraw, fix tests

* refactor(withdraw): replace connect in withdrawal-locked, fix tests

* refactor(withdraw): replace connect into withdrawal-verification-email, fix tests

* refactor(withdraw): replace connect into withdrawal, fix tests

* test(withdraw): refactor withdrawal-locked test

* fix(side-note): fix side_notes type

* fix(error types): fix error types

* test(withdraw): improve withdrawal test

* refactor(error types): refactor error types

* trigger build
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.

5 participants