diff --git a/src/App.tsx b/src/App.tsx index 283d697..2d38c8e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ -import { Admin, ListGuesser, Resource, ShowGuesser } from "react-admin"; +import { Admin, Resource,} from "react-admin"; //import { Layout } from "./Layout";// import { dataProvider } from "./dataProvider"; -import { UserList } from "./components/users/Users.tsx"; +import { UserList } from "./components/users/UserList.tsx"; import { UserEdit } from "./components/users/UserEdit.tsx"; import { PostEdit } from "./components/posts/PostEdit.tsx"; import { CommentEdit } from "./components/comments/CommentEdit.tsx"; @@ -12,6 +12,11 @@ import { UserShow } from "./components/users/UserShow.tsx"; import { CommentShow } from "./components/comments/CommentShow.tsx"; import { PostShow } from "./components/posts/PostShow.tsx"; import { PostList } from "./components/posts/PostList.tsx"; +import { CommentList } from "./components/comments/CommentList.tsx"; +import { AlbumList } from "./components/albums/AlbumList.tsx"; +import { PhotoList } from "./components/photos/PhotoList.tsx"; +import { PhotoShow } from "./components/photos/PhotoShow.tsx"; +import { AlbumShow } from "./components/albums/AlbumShow.tsx"; export const App = () => ( @@ -19,21 +24,24 @@ export const App = () => ( ); + + +// ShowGuesser, EditGuesser, ListGuesser // \ No newline at end of file diff --git a/src/components/albums/AlbumList.tsx b/src/components/albums/AlbumList.tsx new file mode 100644 index 0000000..59b11fa --- /dev/null +++ b/src/components/albums/AlbumList.tsx @@ -0,0 +1,11 @@ +import { Datagrid, List, ReferenceField, TextField } from 'react-admin'; + +export const AlbumList = () => ( + + + + + + + +); \ No newline at end of file diff --git a/src/components/albums/AlbumShow.tsx b/src/components/albums/AlbumShow.tsx new file mode 100644 index 0000000..7dc2a7c --- /dev/null +++ b/src/components/albums/AlbumShow.tsx @@ -0,0 +1,11 @@ +import { ReferenceField, Show, SimpleShowLayout, TextField } from 'react-admin'; + +export const AlbumShow = () => ( + + + + + + + +); \ No newline at end of file diff --git a/src/components/comments/CommentList.tsx b/src/components/comments/CommentList.tsx new file mode 100644 index 0000000..11fc744 --- /dev/null +++ b/src/components/comments/CommentList.tsx @@ -0,0 +1,13 @@ +import { Datagrid, EmailField, List, ReferenceField, TextField } from 'react-admin'; + +export const CommentList = () => ( + + + + + + + + + +); \ No newline at end of file diff --git a/src/components/photos/PhotoList.tsx b/src/components/photos/PhotoList.tsx new file mode 100644 index 0000000..498de5b --- /dev/null +++ b/src/components/photos/PhotoList.tsx @@ -0,0 +1,13 @@ +import { Datagrid, List, ReferenceField, TextField, UrlField } from 'react-admin'; + +export const PhotoList = () => ( + + + + + + + + + +); \ No newline at end of file diff --git a/src/components/photos/PhotoShow.tsx b/src/components/photos/PhotoShow.tsx new file mode 100644 index 0000000..6e183a1 --- /dev/null +++ b/src/components/photos/PhotoShow.tsx @@ -0,0 +1,13 @@ +import { ReferenceField, Show, SimpleShowLayout, TextField, UrlField } from 'react-admin'; + +export const PhotoShow = () => ( + + + + + + + + + +); \ No newline at end of file diff --git a/src/components/users/Users.tsx b/src/components/users/UserList.tsx similarity index 97% rename from src/components/users/Users.tsx rename to src/components/users/UserList.tsx index 8f5d8ed..41fd5ab 100644 --- a/src/components/users/Users.tsx +++ b/src/components/users/UserList.tsx @@ -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";