created Components directory
This commit is contained in:
14
src/Components/CommentEdit.tsx
Normal file
14
src/Components/CommentEdit.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
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>
|
||||
);
|
||||
Reference in New Issue
Block a user