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

refactor: changed QRCodeModal to be normal component instead of modal #1353

Merged
merged 1 commit into from
May 29, 2024

Conversation

AntonioVentilii-DFINITY
Copy link
Contributor

Motivation

After a few tries, I found out that the modal created in PR #1339 is not the most efficient way to have the QR code scan. That is why we modified the component to be a normal component to be called as a step in the Send Wizard Modal.

Changes

  • QRCodeModal was renamed QRCodeScan.
  • The code of the component is now the replica of a normal step of a generic Wizard Modal.

Tests

Created small test to check if the timeout was correctly triggered.

Note

We decided to dispatch events to navigate back, in accordance to the other steps of the Wizard Modal.

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY marked this pull request as ready for review May 28, 2024 13:54
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY force-pushed the refactor/change-qr-modal-to-component branch from f35a218 to 1f6ad1a Compare May 29, 2024 06:57
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY force-pushed the refactor/change-qr-modal-to-component branch from 1f6ad1a to 0f48a85 Compare May 29, 2024 06:59
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY force-pushed the refactor/change-qr-modal-to-component branch from 0f48a85 to a956681 Compare May 29, 2024 07:20
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

LGTM, thx

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY merged commit 1ec8138 into main May 29, 2024
6 checks passed
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY deleted the refactor/change-qr-modal-to-component branch May 29, 2024 12:50
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.

3 participants