mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
Comprehensive review changes
This commit is contained in:
parent
3aa8c654cc
commit
6074d9d6e4
143 changed files with 2661 additions and 1535 deletions
|
|
@ -1,14 +1,17 @@
|
|||
import React from 'react';
|
||||
import { Form } from 'react-final-form'
|
||||
import { Form } from 'react-final-form';
|
||||
|
||||
import { InputAction } from '@app/components';
|
||||
|
||||
const SayMessage = ({ onSubmit }) => (
|
||||
interface SayMessageProps {
|
||||
onSubmit: (args: { message: string }) => void;
|
||||
}
|
||||
|
||||
const SayMessage = ({ onSubmit }: SayMessageProps) => (
|
||||
<Form onSubmit={onSubmit}>
|
||||
{({ handleSubmit, form }) => (
|
||||
<form onSubmit={e => {
|
||||
handleSubmit(e)
|
||||
form.restart()
|
||||
handleSubmit(e);
|
||||
form.restart();
|
||||
}}>
|
||||
<InputAction action="Send" label="Chat" name="message" />
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue