Changeset View
Changeset View
Standalone View
Standalone View
web/account/password-input.react.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import SWMansionIcon, { | |||||
type Icon, | |||||
} from 'lib/components/SWMansionIcon.react.js'; | |||||
import Button from '../components/button.react'; | import Button from '../components/button.react'; | ||||
import Input, { type BaseInputProps } from '../modals/input.react'; | import Input, { type BaseInputProps } from '../modals/input.react'; | ||||
import SWMansionIcon, { type Icon } from '../SWMansionIcon.react'; | |||||
import css from './password-input.css'; | import css from './password-input.css'; | ||||
type PasswordInputProps = BaseInputProps; | type PasswordInputProps = BaseInputProps; | ||||
function PasswordInput(props: PasswordInputProps, ref): React.Node { | function PasswordInput(props: PasswordInputProps, ref): React.Node { | ||||
const [htmlInputType, setHtmlInputType] = React.useState<'password' | 'text'>( | const [htmlInputType, setHtmlInputType] = React.useState<'password' | 'text'>( | ||||
'password', | 'password', | ||||
); | ); | ||||
Show All 29 Lines |