mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
chore: update PasswordInput component
This commit is contained in:
@@ -6,8 +6,10 @@ import { Icon } from '@iconify/react';
|
|||||||
import TextInput, { TextInputProps } from '@/components/input/TextInput';
|
import TextInput, { TextInputProps } from '@/components/input/TextInput';
|
||||||
import Button from '@/components/Button';
|
import Button from '@/components/Button';
|
||||||
|
|
||||||
interface PasswordInputProps
|
type PasswordInputProps = Omit<
|
||||||
extends Omit<TextInputProps, 'type' | 'startAdornment' | 'endAdornment'> {}
|
TextInputProps,
|
||||||
|
'type' | 'startAdornment' | 'endAdornment'
|
||||||
|
>;
|
||||||
|
|
||||||
const PasswordInput = (props: PasswordInputProps) => {
|
const PasswordInput = (props: PasswordInputProps) => {
|
||||||
const [type, setType] = useState('password');
|
const [type, setType] = useState('password');
|
||||||
|
|||||||
Reference in New Issue
Block a user