chore: use monorepo organization
This commit is contained in:
parent
deaf7d6ecc
commit
a687827f7e
1099 changed files with 8184 additions and 11535 deletions
|
|
@ -0,0 +1,25 @@
|
|||
import React, { memo } from 'react'
|
||||
|
||||
import { RadioGroup } from '../base'
|
||||
|
||||
const RadioGroupFormik = memo(({ label, ...props }) => {
|
||||
const { name, onChange, value } = props.field
|
||||
|
||||
return (
|
||||
<RadioGroup
|
||||
name={name}
|
||||
label={label}
|
||||
value={value}
|
||||
options={props.options}
|
||||
ariaLabel={name}
|
||||
onChange={e => {
|
||||
onChange(e)
|
||||
props.resetError && props.resetError()
|
||||
}}
|
||||
className={props.className}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
||||
export default RadioGroupFormik
|
||||
Loading…
Add table
Add a link
Reference in a new issue