mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
upgrade packages + improve typing
This commit is contained in:
parent
fd55f4fb7f
commit
19f5eefdd2
138 changed files with 4504 additions and 11015 deletions
|
|
@ -6,7 +6,7 @@ import { InputField } from 'components';
|
|||
|
||||
import './InputAction.css';
|
||||
|
||||
const InputAction = ({ action, label, name, validate, disabled }) => (
|
||||
const InputAction = ({ action, label, name, validate = () => false, disabled = false }) => (
|
||||
<div className="input-action">
|
||||
<div className="input-action__item">
|
||||
<Field label={label} name={name} component={InputField} validate={validate} />
|
||||
|
|
@ -19,9 +19,4 @@ const InputAction = ({ action, label, name, validate, disabled }) => (
|
|||
</div>
|
||||
);
|
||||
|
||||
InputAction.defaultProps = {
|
||||
disabled: false,
|
||||
validate: () => false,
|
||||
}
|
||||
|
||||
export default InputAction;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue