mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Comprehensive review changes
This commit is contained in:
parent
3aa8c654cc
commit
6074d9d6e4
143 changed files with 2661 additions and 1535 deletions
|
|
@ -1,12 +1,25 @@
|
|||
import React from 'react';
|
||||
import { Field } from 'react-final-form'
|
||||
import { Field } from 'react-final-form';
|
||||
import Button from '@mui/material/Button';
|
||||
|
||||
import { InputField } from '..';
|
||||
|
||||
import './InputAction.css';
|
||||
|
||||
const InputAction = ({ action, label, name, validate = () => false, disabled = false }) => (
|
||||
interface InputActionProps {
|
||||
action: string;
|
||||
label: string;
|
||||
name: string;
|
||||
validate?: (value: unknown) => string | undefined | false;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
const InputAction = ({
|
||||
action,
|
||||
label,
|
||||
name,
|
||||
validate = () => undefined,
|
||||
disabled = false,
|
||||
}: InputActionProps) => (
|
||||
<div className="input-action">
|
||||
<div className="input-action__item">
|
||||
<Field label={label} name={name} component={InputField} validate={validate} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue