Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
refactor(password): update icon display depending on state (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbuchann authored and Méril committed Jan 25, 2019
1 parent 31cadcf commit ab836f1
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 122 deletions.
4 changes: 2 additions & 2 deletions src/Atoms/Inputs/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class Password extends React.Component<PropsType, StateType> {
}

return this.state.type === 'password' ? (
<Eye {...props} />
) : (
<EyeSlash {...props} />
) : (
<Eye {...props} />
)
}

Expand Down
Loading

0 comments on commit ab836f1

Please sign in to comment.