From da6f625a343515aebbe6acf14e813c7dd8e06f9d Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 9 Sep 2020 13:11:08 +0300 Subject: [PATCH] Migration: use new password widget. --- src/MigrateV2.tsx | 12 ++++++---- src/widgets/PasswordField.tsx | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 src/widgets/PasswordField.tsx diff --git a/src/MigrateV2.tsx b/src/MigrateV2.tsx index 8758a22..97dc4e2 100644 --- a/src/MigrateV2.tsx +++ b/src/MigrateV2.tsx @@ -24,6 +24,7 @@ import { Checkbox, FormGroup, FormControlLabel, CircularProgress } from "@materi import Alert from "@material-ui/lab/Alert"; import { arrayToChunkIterator } from "./helpers"; import { ContactType, EventType, TaskType, PimType } from "./pim-types"; +import PasswordField from "./widgets/PasswordField"; interface PropsType { etesync: CredentialsData; @@ -107,7 +108,11 @@ export default function MigrateV2(props: PropsType) { forgotPassword: { paddingTop: 20, }, + alertInfo: { + marginTop: 20, + }, textField: { + width: "20em", marginTop: 20, }, submit: { @@ -333,8 +338,7 @@ export default function MigrateV2(props: PropsType) { onChange={handleInputChange(setUsername)} />
- {advancedSettings} {errors.errorGeneral && ( - {errors.errorGeneral} + {errors.errorGeneral} )} {progress && ( - {progress} + {progress} )}