|
|
@ -12,6 +12,7 @@ import ExternalLink from "../widgets/ExternalLink";
|
|
|
|
|
|
|
|
|
|
|
|
import * as C from "../constants";
|
|
|
|
import * as C from "../constants";
|
|
|
|
import LoadingIndicator from "../widgets/LoadingIndicator";
|
|
|
|
import LoadingIndicator from "../widgets/LoadingIndicator";
|
|
|
|
|
|
|
|
import Alert from "@material-ui/lab/Alert";
|
|
|
|
|
|
|
|
|
|
|
|
interface FormErrors {
|
|
|
|
interface FormErrors {
|
|
|
|
errorEmail?: string;
|
|
|
|
errorEmail?: string;
|
|
|
@ -110,7 +111,6 @@ export default function LoginForm(props: PropsType) {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
{(props.error) && (<div>Error! {props.error.message}</div>)}
|
|
|
|
|
|
|
|
<form style={styles.form} onSubmit={generateEncryption}>
|
|
|
|
<form style={styles.form} onSubmit={generateEncryption}>
|
|
|
|
<TextField
|
|
|
|
<TextField
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -149,6 +149,10 @@ export default function LoginForm(props: PropsType) {
|
|
|
|
</FormGroup>
|
|
|
|
</FormGroup>
|
|
|
|
{advancedSettings}
|
|
|
|
{advancedSettings}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{props.error && (
|
|
|
|
|
|
|
|
<Alert severity="error" style={styles.textField}>{props.error.message}</Alert>
|
|
|
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
<div style={styles.submit}>
|
|
|
|
<div style={styles.submit}>
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
variant="contained"
|
|
|
|
variant="contained"
|
|
|
|