mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
19 lines
492 B
TypeScript
19 lines
492 B
TypeScript
// eslint-disable-next-line
|
|
import React from "react";
|
|
import { connect } from 'react-redux';
|
|
import { Form, reduxForm } from 'redux-form'
|
|
|
|
import { InputAction } from 'components';
|
|
import { FormKey } from 'types';
|
|
|
|
const AddToIgnore = ({ handleSubmit }) => (
|
|
<Form onSubmit={handleSubmit}>
|
|
<InputAction action="Add" label="Add to Ignore" name="userName" />
|
|
</Form>
|
|
);
|
|
|
|
const propsMap = {
|
|
form: FormKey.ADD_TO_IGNORE,
|
|
};
|
|
|
|
export default connect()(reduxForm(propsMap)(AddToIgnore));
|