[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
521 B

import React, { FC } from 'react'
import noop from 'lodash/noop'
export interface Props {
name: string
value?: boolean
setValue?: (value: boolean) => void
}
const PasswordField: FC<Props> = ({
value = false,
setValue = noop,
children,
}) => {
return (
<label className="checkbox">
<input type="checkbox" checked={value} onChange={(e) => setValue(e.target.checked)} />
&nbsp;&nbsp;
{children}
</label>
)
}
export default PasswordField