Skip to content

Instantly share code, notes, and snippets.

@ohtangza
Created August 27, 2019 07:52
Show Gist options
  • Save ohtangza/649bb3ecf15b6a464915ede29ecfd35c to your computer and use it in GitHub Desktop.
Save ohtangza/649bb3ecf15b6a464915ede29ecfd35c to your computer and use it in GitHub Desktop.
{
languageChoices.map(choice => (
filterValues.languageCode === choice.id &&
<Datagrid {...props} ids={this.state[choice.id]}>
<TextField source="text" />
<ReferenceField source="contentId" reference="contents">
<TextField source="title" />
</ReferenceField>
<BooleanField source="keepable" />
<TextField source="languageCode" />
<BooleanField source="notificationEnabled" />
<TextField source="startTime" />
<TextField source="endTime" />
<EditButton />
</Datagrid>
))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment