Skip to content

Commit

Permalink
Merge pull request #2172 from Emurgo/Ahmed/ch8739/UIUpdates
Browse files Browse the repository at this point in the history
Update the eye icon in the input field and update the logic
  • Loading branch information
vsubhuman committed Jun 14, 2021
2 parents acd6aa7 + e112b84 commit 64c707f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions packages/yoroi-extension/app/themes/skins/FormFieldOwnSkin.js
Expand Up @@ -4,8 +4,8 @@ import type { Element, Node } from 'react';
import { omit } from 'lodash';
import classnames from 'classnames';
import ErrorSvg from '../../assets/images/input/exclamationmark.inline.svg';
import PasswordSvg from '../../assets/images/input/password.watch.inline.svg';
import PasswordHiddenSvg from '../../assets/images/input/password.hiden.inline.svg';
import PasswordShownIcon from '../../assets/images/input/visibility.opened.inline.svg';
import PasswordHiddenIcon from '../../assets/images/input/visibility.closed.inline.svg';
import SuccessSvg from '../../assets/images/widget/tick-green.inline.svg';
import DeleteMemoSvg from '../../assets/images/cross.inline.svg';
import styles from './FormFieldOwnSkin.scss';
Expand Down Expand Up @@ -76,8 +76,8 @@ export const FormFieldOwnSkin = class extends React.Component<Props, State> {
{(this.props.type === 'password') ? (
<button tabIndex="-1" type="button" onClick={this.showPassword}>
{isPasswordShown
? <PasswordSvg />
: <PasswordHiddenSvg />}
? <PasswordShownIcon />
: <PasswordHiddenIcon />}
</button>
) : null}
{this.props.type === 'memo' && !this.props.error ? (
Expand Down

0 comments on commit 64c707f

Please sign in to comment.