chore: use proper name convention for build tools
This commit is contained in:
parent
62f39f3561
commit
d646aee24b
283 changed files with 353 additions and 422 deletions
34
new-lamassu-admin/src/components/inputs/formik/Checkbox.jsx
Normal file
34
new-lamassu-admin/src/components/inputs/formik/Checkbox.jsx
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import React, { memo } from 'react'
|
||||
|
||||
import { Checkbox } from '../base'
|
||||
|
||||
const CheckboxInput = memo(
|
||||
({
|
||||
label,
|
||||
textAlign,
|
||||
fullWidth,
|
||||
enabled = true,
|
||||
disabledMessage = '',
|
||||
...props
|
||||
}) => {
|
||||
const { name, onChange, value } = props.field
|
||||
|
||||
const settings = {
|
||||
enabled: enabled,
|
||||
label: label,
|
||||
disabledMessage: disabledMessage
|
||||
}
|
||||
|
||||
return (
|
||||
<Checkbox
|
||||
name={name}
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
settings={settings}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
export default CheckboxInput
|
||||
Loading…
Add table
Add a link
Reference in a new issue