mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 11:01:29 -07:00
513fcb0908
* draft: handle firing an event once * lint * Prevent rapid double-click on sending messages * no rest spread on single primative when sibling components exist * clear message instead of using a fireOnce handler. * fix tests * remove unnecessary validate mock
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
import React from 'react';
|
|
import { Form } from 'react-final-form'
|
|
|
|
import { InputAction } from 'components';
|
|
|
|
const AddToIgnore = ({ onSubmit }) => (
|
|
<Form onSubmit={values => onSubmit(values)}>
|
|
{({ handleSubmit }) => (
|
|
<form onSubmit={handleSubmit}>
|
|
<InputAction action="Add" label="Add to Ignore" name="userName" />
|
|
</form>
|
|
)}
|
|
</Form>
|
|
);
|
|
|
|
export default AddToIgnore;
|