14 lines
404 B
TypeScript
14 lines
404 B
TypeScript
|
|
import { Edit, ReferenceInput, SimpleForm, TextInput } from 'react-admin';
|
|
|
|
export const CommentEdit = () => (
|
|
<Edit>
|
|
<SimpleForm>
|
|
<ReferenceInput source="postId" reference="posts" />
|
|
<TextInput source="id" />
|
|
<TextInput source="name" />
|
|
<TextInput source="email" />
|
|
<TextInput source="body" />
|
|
</SimpleForm>
|
|
</Edit>
|
|
); |