I would like to create a new component containing Inputs
both Fields
of aor
and use it in <SimpleForm>
and <TabbedForm>
, as shown below:
const WrapperComp = () => {
return (
<div>
<TextFieldLabel muiTheme={muiTheme}>Title Example</TextFieldLabel>,
<TextInput source="status"/>,
<TextField source="status"/>
</div>
)
}
<SimpleForm>
<WrapperComp />
</SimpleForm>
but i get Uncaught Error: The TextInput component wasn't called within a redux-form <Field>. Did you decorate it and forget to add the addField prop to your component?
.
Any help would be greatly appreciated. Thank!
source
share