Add missing label to WrappedFieldProps

All of the redux-form examples show `label` being passed to the `component` of a `Field`, and `label` is on `BaseFieldProps` for what's passed to the `Field`. However, `label` is missing from `WrappedFieldProps`, which is what's passed to the thing referenced by `component`.
This commit is contained in:
Jamie Bliss
2018-03-02 16:31:12 -05:00
committed by GitHub
parent 47e27107f1
commit 5e12555734
+1
View File
@@ -72,6 +72,7 @@ export class Field<P = GenericFieldHTMLAttributes | BaseFieldProps> extends Comp
export interface WrappedFieldProps {
input: WrappedFieldInputProps;
meta: WrappedFieldMetaProps;
label?: string;
}
export interface WrappedFieldInputProps extends CommonFieldInputProps {