mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
connect reset password to login view (#4489)
This commit is contained in:
parent
811ee54c76
commit
1f15445c69
31 changed files with 893 additions and 445 deletions
|
|
@ -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"
|
||||
/>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue