Webatrice: KnownHosts component (#4456)

* refactor dexie services for future schema updates

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto
2021-11-25 21:12:23 -06:00
committed by GitHub
parent 37879c4255
commit 6ce346af4a
54 changed files with 1381 additions and 1291 deletions

View File

@@ -17,7 +17,7 @@ const RequestPasswordResetForm = (props) => {
const [errorMessage, setErrorMessage] = useState(false);
const [isMFA, setIsMFA] = useState(false);
const onHostChange = ({ host, port }) => {
const onHostChange: any = ({ host, port }) => {
dispatch(change(FormKey.RESET_PASSWORD_REQUEST, 'host', host));
dispatch(change(FormKey.RESET_PASSWORD_REQUEST, 'port', port));
}
@@ -51,7 +51,7 @@ const RequestPasswordResetForm = (props) => {
</div>
) : null}
<div className="RequestPasswordResetForm-item">
<KnownHosts onChange={onHostChange} />
<Field name='selectedHost' component={KnownHosts} onChange={onHostChange} />
</div>
</div>
<Button className="RequestPasswordResetForm-submit rounded tall" color="primary" variant="contained" type="submit">