connect reset password to login view (#4489)

This commit is contained in:
Jeremy Letto 2021-12-07 21:57:12 -06:00 committed by GitHub
parent 811ee54c76
commit 1f15445c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 893 additions and 445 deletions

View file

@ -2,8 +2,8 @@ import React from 'react';
import Checkbox from '@material-ui/core/Checkbox';
import FormControlLabel from '@material-ui/core/FormControlLabel';
const CheckboxField = ({ input, label }) => {
const { value, onChange } = input;
const CheckboxField = (props) => {
const { input: { value, onChange }, label, ...args } = props;
// @TODO this isnt unchecking properly
return (
@ -12,9 +12,10 @@ const CheckboxField = ({ input, label }) => {
label={label}
control={
<Checkbox
{ ...args }
className="checkbox-field__box"
checked={!!value}
onChange={onChange}
onChange={(e, checked) => onChange(checked)}
color="primary"
/>
}