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

QR amount input #105

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

QR amount input #105

wants to merge 5 commits into from

Conversation

aleksre
Copy link

@aleksre aleksre commented Jan 19, 2021

This PR adds an amount input field to the receive sheet so it can be prefilled by the scanning device. The feature was suggested here

The current QR implementation creates the QR widget ahead of time and passes it into the receive sheet for performance reasons. I decided to keep it like this for the initial render. The QR widget is redrawn as the user enters the amount. I also tested only redrawing on blur/enter, but it didn't feel as nice IMO. If there is another approach that is preferable to this, let me know!

The input supports both NANO and local currency inputs which is converted to raw on the fly. This should be especially useful as a POS device for merchants with items listed in their native currency, since no separate currency calculation is needed.

image
image

@yekta
Copy link
Collaborator

yekta commented Jan 20, 2021

Thanks for the PR. The feature was already suggested before a couple of times and we have an implementation in mind (which we couldn't get to implementing yet). Since we prefer that implementation over this one, we won't be merging this one.

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.

2 participants