changed the structure a little bit - & add some margin to comment's list
This commit is contained in:
+27
-43
@@ -1,55 +1,39 @@
|
||||
import {
|
||||
Admin,
|
||||
Resource,
|
||||
ListGuesser,
|
||||
//EditGuesser,//
|
||||
ShowGuesser,
|
||||
} from "react-admin";
|
||||
import { Admin, ListGuesser, Resource, ShowGuesser } from "react-admin";
|
||||
//import { Layout } from "./Layout";//
|
||||
import { dataProvider } from "./dataProvider";
|
||||
import {UserList} from "./Components/Users.tsx";
|
||||
import {UserEdit} from "./Components/UserEdit.tsx";
|
||||
import {PostEdit} from "./Components/PostEdit.tsx";
|
||||
import {CommentEdit} from "./Components/CommentEdit.tsx";
|
||||
import {AlbumEdit} from "./Components/AlbumEdit.tsx";
|
||||
import {PhotoEdit} from "./Components/PhotoEdit.tsx";
|
||||
import {MyLayout} from "./Components/MyLayout.tsx";
|
||||
import {UserShow} from "./Components/UserShow.tsx";
|
||||
import {CommentShow} from "./Components/CommentShow.tsx";
|
||||
import {PostShow} from "./Components/PostShow.tsx";
|
||||
import {PostList} from "./Components/PostList.tsx";
|
||||
import { UserList } from "./Components/users/Users.tsx";
|
||||
import { UserEdit } from "./Components/users/UserEdit.tsx";
|
||||
import { PostEdit } from "./Components/PostEdit.tsx";
|
||||
import { CommentEdit } from "./Components/CommentEdit.tsx";
|
||||
import { AlbumEdit } from "./Components/AlbumEdit.tsx";
|
||||
import { PhotoEdit } from "./Components/PhotoEdit.tsx";
|
||||
import { MyLayout } from "./Components/MyLayout.tsx";
|
||||
import { UserShow } from "./Components/users/UserShow.tsx";
|
||||
import { CommentShow } from "./Components/CommentShow.tsx";
|
||||
import { PostShow } from "./Components/PostShow.tsx";
|
||||
import { PostList } from "./Components/PostList.tsx";
|
||||
|
||||
export const App = () => (
|
||||
<Admin layout={MyLayout} dataProvider={dataProvider}>
|
||||
<Resource name="users" list={UserList} edit={UserEdit} show={UserShow} />
|
||||
<Resource name="posts" list={PostList} edit={PostEdit} show={PostShow} />
|
||||
<Resource
|
||||
name="users"
|
||||
list={UserList}
|
||||
edit={UserEdit}
|
||||
show={UserShow}
|
||||
/>
|
||||
<Resource
|
||||
name="posts"
|
||||
list={PostList}
|
||||
edit={PostEdit}
|
||||
show={PostShow}
|
||||
name="comments"
|
||||
list={ListGuesser}
|
||||
edit={CommentEdit}
|
||||
show={CommentShow}
|
||||
/>
|
||||
<Resource
|
||||
name="comments"
|
||||
list={ListGuesser}
|
||||
edit={CommentEdit}
|
||||
show={CommentShow}
|
||||
name="albums"
|
||||
list={ListGuesser}
|
||||
edit={AlbumEdit}
|
||||
show={ShowGuesser}
|
||||
/>
|
||||
<Resource
|
||||
name="albums"
|
||||
list={ListGuesser}
|
||||
edit={AlbumEdit}
|
||||
show={ShowGuesser}
|
||||
/>
|
||||
<Resource
|
||||
name="photos"
|
||||
list={ListGuesser}
|
||||
edit={PhotoEdit}
|
||||
show={ShowGuesser}
|
||||
name="photos"
|
||||
list={ListGuesser}
|
||||
edit={PhotoEdit}
|
||||
show={ShowGuesser}
|
||||
/>
|
||||
</Admin>
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user