-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
fa6cbec
to
570bd1b
Compare
import * as React from 'react'; | ||
import styled, { StyledComponent } from 'styled-components'; | ||
|
||
import * as input from '../../atoms/input'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import * as input from '../../atoms/input'; | |
import { input } from '../../atoms'; |
isHidden: boolean; | ||
name: string; | ||
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown; | ||
onIconClick: React.MouseEventHandler<HTMLButtonElement>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь не нужен onIconClick, клик по иконке-глазу должен скрывать и показывать пароль автоматически
iconOpen: React.ReactNode; | ||
isHidden: boolean; | ||
name: string; | ||
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onChange: (e: React.ChangeEvent<HTMLInputElement>) => unknown; | |
onChange: React.ChangeEventHandler<HTMLInputElement>; |
disabled?: boolean; | ||
iconHidden: React.ReactNode; | ||
iconOpen: React.ReactNode; | ||
isHidden: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это должно быть внутреннее состояние
interface InputPasswordProps { | ||
disabled?: boolean; | ||
iconHidden: React.ReactNode; | ||
iconOpen: React.ReactNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пусть iconOpen
и iconHide
будут опциональными, по умолчанию задай им иконки
7f79f1c
to
1d1f519
Compare
1d1f519
to
1fc2263
Compare
Implement inputPassword molecule