Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Switch ugly password boxes to Field or styled input #3071

Merged
merged 4 commits into from
Jun 19, 2019

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 6, 2019

image
image
image
image

Partially fixes element-hq/element-web#4929

Usages for password fields of <input vs <Field is inconsistent throughout codebase, here it just felt nicer that on such a barren modal a Field is used IMO. If reviewer prefers I switch all over to Field then sure. Also removes a usage of a ref because they're discouraged in react in favour of controlled components.

Signed-off-by: Michael Telatynski 7t3chguy@gmail.com

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested a review from a team June 6, 2019 08:21
@jryans jryans requested review from jryans and removed request for a team June 6, 2019 08:25
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! 😁 Just a few tweaks I'd like to see first.

t3chguy added 3 commits June 6, 2019 23:51
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested a review from jryans June 16, 2019 09:43
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good to me! (Sorry for the delay!)

@jryans jryans merged commit 9591e6b into develop Jun 19, 2019
turt2live added a commit that referenced this pull request Jul 10, 2019
The Field is controlled, so we should be using the state. Otherwise the value is undefined, which means we don't supply the required auth.

Fixes element-hq/element-web#10302
Regressed in #3071
jryans pushed a commit that referenced this pull request Jul 11, 2019
The Field is controlled, so we should be using the state. Otherwise the value is undefined, which means we don't supply the required auth.

Fixes element-hq/element-web#10302
Regressed in #3071
@t3chguy t3chguy deleted the t3chguy/authentication_password_field branch April 27, 2020 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The device delete dialog is ugly
2 participants