Lamassu admin server initial commit
This commit is contained in:
parent
d083ae5a40
commit
fc1951c4b2
158 changed files with 28462 additions and 1606 deletions
18
new-lamassu-admin/src/components/inputs/formik/Checkbox.js
Normal file
18
new-lamassu-admin/src/components/inputs/formik/Checkbox.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import React, { memo } from 'react'
|
||||
|
||||
import { Checkbox } from '../base'
|
||||
|
||||
const CheckboxInput = memo(({ label, ...props }) => {
|
||||
const { name, onChange, value } = props.field
|
||||
|
||||
return (
|
||||
<Checkbox
|
||||
name={name}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
export default CheckboxInput
|
||||
Loading…
Add table
Add a link
Reference in a new issue