Skip to content

Commit

Permalink
fix: allow for optional password field
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jun 26, 2023
1 parent 8dc908c commit 365958e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/form/PasswordField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import TextField, { TextFieldProps } from './TextField';

export interface PasswordFieldProps extends Omit<TextFieldProps, (
'type' |
'name' |
'required'
'name'
)> {
name?: string;
}
Expand All @@ -25,7 +24,6 @@ const PasswordField: React.FC<PasswordFieldProps> = ({
}) => {
return (
<TextField
required
type='password'
name={name}
validate={validate}
Expand Down

0 comments on commit 365958e

Please sign in to comment.