Skip to content
Snippets Groups Projects

Api login

Merged Defendi Alberto requested to merge api-login into dev
10 files
+ 159
10
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -6,10 +6,12 @@ type Props = {
@@ -6,10 +6,12 @@ type Props = {
label: string;
label: string;
error: boolean;
error: boolean;
errorMessage: string;
errorMessage: string;
 
value: string;
 
onChange: any;
};
};
export const InputField: FC<Props> = (props: Props) => {
export const InputField: FC<Props> = (props: Props) => {
const { id, label, error, errorMessage } = props;
const { id, label, error, errorMessage, onChange, value } = props;
return (
return (
<TextField
<TextField
variant="outlined"
variant="outlined"
@@ -19,6 +21,8 @@ export const InputField: FC<Props> = (props: Props) => {
@@ -19,6 +21,8 @@ export const InputField: FC<Props> = (props: Props) => {
id={id}
id={id}
label={label}
label={label}
name={id}
name={id}
 
onChange={onChange}
 
value={value}
autoComplete={id}
autoComplete={id}
autoFocus
autoFocus
error={error}
error={error}
Loading