feat: notifications rework
This commit is contained in:
parent
b6e7d98b72
commit
ffa8713ee4
77 changed files with 2281 additions and 3269 deletions
|
|
@ -0,0 +1,22 @@
|
|||
import React from 'react'
|
||||
|
||||
import { Autocomplete } from '../base'
|
||||
|
||||
const AutocompleteFormik = props => {
|
||||
const { name, onBlur, value } = props.field
|
||||
const { touched, errors, setFieldValue } = props.form
|
||||
const error = !!(touched[name] && errors[name])
|
||||
|
||||
return (
|
||||
<Autocomplete
|
||||
name={name}
|
||||
onChange={(event, item) => setFieldValue(name, item)}
|
||||
onBlur={onBlur}
|
||||
value={value}
|
||||
error={error}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default AutocompleteFormik
|
||||
Loading…
Add table
Add a link
Reference in a new issue