removed the Guessers
This commit is contained in:
11
src/components/albums/AlbumList.tsx
Normal file
11
src/components/albums/AlbumList.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Datagrid, List, ReferenceField, TextField } from 'react-admin';
|
||||
|
||||
export const AlbumList = () => (
|
||||
<List>
|
||||
<Datagrid>
|
||||
<ReferenceField source="userId" reference="users" />
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
11
src/components/albums/AlbumShow.tsx
Normal file
11
src/components/albums/AlbumShow.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import { ReferenceField, Show, SimpleShowLayout, TextField } from 'react-admin';
|
||||
|
||||
export const AlbumShow = () => (
|
||||
<Show>
|
||||
<SimpleShowLayout>
|
||||
<ReferenceField source="userId" reference="users" />
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
);
|
||||
13
src/components/comments/CommentList.tsx
Normal file
13
src/components/comments/CommentList.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Datagrid, EmailField, List, ReferenceField, TextField } from 'react-admin';
|
||||
|
||||
export const CommentList = () => (
|
||||
<List>
|
||||
<Datagrid>
|
||||
<ReferenceField source="postId" reference="posts" />
|
||||
<TextField source="id" />
|
||||
<TextField source="name" />
|
||||
<EmailField source="email" />
|
||||
<TextField source="body" />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
13
src/components/photos/PhotoList.tsx
Normal file
13
src/components/photos/PhotoList.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Datagrid, List, ReferenceField, TextField, UrlField } from 'react-admin';
|
||||
|
||||
export const PhotoList = () => (
|
||||
<List>
|
||||
<Datagrid>
|
||||
<ReferenceField source="albumId" reference="albums" />
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
<UrlField source="url" />
|
||||
<TextField source="thumbnailUrl" />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
13
src/components/photos/PhotoShow.tsx
Normal file
13
src/components/photos/PhotoShow.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { ReferenceField, Show, SimpleShowLayout, TextField, UrlField } from 'react-admin';
|
||||
|
||||
export const PhotoShow = () => (
|
||||
<Show>
|
||||
<SimpleShowLayout>
|
||||
<ReferenceField source="albumId" reference="albums" />
|
||||
<TextField source="id" />
|
||||
<TextField source="title" />
|
||||
<UrlField source="url" />
|
||||
<TextField source="thumbnailUrl" />
|
||||
</SimpleShowLayout>
|
||||
</Show>
|
||||
);
|
||||
@@ -1,4 +1,4 @@
|
||||
// in src/Users.tsx
|
||||
// in src/UserList.tsx
|
||||
import { useMediaQuery } from "@mui/material";
|
||||
import { List, SimpleList, Datagrid, TextField, EmailField, } from "react-admin";
|
||||
|
||||
Reference in New Issue
Block a user