Webatrice: update package.json (#4590)

* update package.json

* cleanup

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-03-07 12:43:01 -06:00 committed by GitHub
parent 533045445a
commit 0d0337f091
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 4618 additions and 10629 deletions

View file

@ -3,22 +3,17 @@ import { Form } from 'react-final-form'
import { InputAction } from 'components';
const required = (value) => (value ? undefined : 'Required');
const SayMessage = (props) => {
const { onSubmit } = props
return (
<Form onSubmit={values => onSubmit(values)}>
{({ handleSubmit, form }) => (
<form onSubmit={e => {
handleSubmit(e)
form.restart()
}}>
<InputAction action="Send" label="Chat" name="message" validate={required}/>
</form>
)}
</Form>
);
}
const SayMessage = ({ onSubmit }) => (
<Form onSubmit={onSubmit}>
{({ handleSubmit, form }) => (
<form onSubmit={e => {
handleSubmit(e)
form.restart()
}}>
<InputAction action="Send" label="Chat" name="message" />
</form>
)}
</Form>
);
export default SayMessage;