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

Trezor modals improvements #2956

Merged
merged 13 commits into from
Mar 4, 2021
Merged

Conversation

guilhermemntt
Copy link
Contributor

@guilhermemntt guilhermemntt commented Nov 17, 2020

This PR standardizes several implementation details among Trezor related components:

All changes have been tested with Trezor model One emulator and latest master.

app/constants/trezor.js Outdated Show resolved Hide resolved
@guilhermemntt
Copy link
Contributor Author

Thanks @matheusd for the review. PIN_LABELS has been removed and the input disabled.

Copy link
Member

@JoeGruffins JoeGruffins left a comment

Choose a reason for hiding this comment

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

Looks good to me. All of the modals working.

@alexlyp
Copy link
Member

alexlyp commented Feb 16, 2021

Needs a rebase then should be able to merge

@guilhermemntt
Copy link
Contributor Author

Rebased.

@alexlyp
Copy link
Member

alexlyp commented Feb 25, 2021

Apologies, another rebase now.

Copy link
Member

@amass01 amass01 left a comment

Choose a reason for hiding this comment

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

Nice work - left couple of suggestions.


let Component = null;

if (waitingForPin) {
Copy link
Member

Choose a reason for hiding this comment

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

you could use useMemo to memorize the Component value.


const trezorLabel = device ? deviceLabel : "";

const className = classNames(
Copy link
Member

Choose a reason for hiding this comment

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

Redundant const

@guilhermemntt
Copy link
Contributor Author

Rebased.

@alexlyp alexlyp merged commit e403376 into decred:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants