Skip to content
Snippets Groups Projects

Axios

Merged Defendi Alberto requested to merge axios into dev
2 files
+ 36
21
Compare changes
  • Side-by-side
  • Inline
Files
2
 
import React, { FC } from 'react';
 
import { TextField } from '@material-ui/core';
 
 
type Props = {
 
id: string;
 
label: string;
 
error: boolean;
 
errorMessage: string;
 
};
 
 
export const InputField: FC<Props> = (props: Props) => {
 
const { id, label, error, errorMessage } = props;
 
return (
 
<TextField
 
variant="outlined"
 
margin="normal"
 
required
 
fullWidth
 
id={id}
 
label={label}
 
name={id}
 
autoComplete={id}
 
autoFocus
 
error={error}
 
helperText={error && errorMessage}
 
/>
 
);
 
};
Loading