Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Fix JSX syntax error in code suggested by EditGuesser #2569

Merged
merged 1 commit into from
Nov 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/ra-ui-materialui/src/detail/editFieldTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ${children.map(child => ` ${child.getRepresentation()}`).join('\n')}
),
representation: (props, children) =>
`<ArrayInput source="${
props.source
props.source
}"><SimpleFormIterator>${children
.map(child => child.getRepresentation())
.join('\n')}</SimpleFormIterator></ArrayInput>`,
Expand Down Expand Up @@ -55,23 +55,23 @@ ${children.map(child => ` ${child.getRepresentation()}`).join('\n')}
component: ReferenceInput,
representation: (props, children) =>
`<ReferenceInput source="${props.source}" reference="${
props.reference
props.reference
}">${children.getRepresentation()}</ReferenceInput>`,
},
referenceChild: {
component: props => <SelectInput optionText="id" {...props} />, // eslint-disable-line react/display-name
representation: () => `<SelectInput optionText="id">`,
representation: () => `<SelectInput optionText="id" />`,
},
referenceArray: {
component: ReferenceArrayInput,
representation: props =>
`<ReferenceArrayInput source="${props.source}" reference="${
props.reference
props.reference
}"><TextInput source="id" /></ReferenceArrayInput>`,
},
referenceArrayChild: {
component: props => <SelectInput optionText="id" {...props} />, // eslint-disable-line react/display-name
representation: () => `<SelectInput optionText="id">`,
representation: () => `<SelectInput optionText="id" />`,
},
richText: {
component: TextInput,
Expand Down