@@ -2,14 +2,14 @@ import React from 'react';
22
33import './App.css' ;
44import { Button , Grid2 , TextField } from '@mui/material' ;
5- import getProjects from './components/getProjects' ;
6- import getUsers from './components/getUsers' ;
75import deleteUser from './components/deleteUser' ;
86import deleteProject from './components/deleteProject' ;
97import CreateProjectForm from './components/createProject' ;
108import CreateUserForm from './components/createUser' ;
119import UpdateProjectForm from './components/updateProject' ;
1210import UpdateUserForm from './components/updateUser' ;
11+ import UserList from './components/showUsers' ;
12+ import ProjectList from './components/showProjects' ;
1313
1414const App : React . FC = ( ) => (
1515< div className = "App" style = { { paddingTop : 30 } } >
@@ -19,31 +19,35 @@ const App: React.FC = () => (
1919 < div style = { { paddingBottom : 10 } } >
2020 < TextField defaultValue = "-1" id = "user_id" label = "Outlined" variant = "outlined" />
2121 </ div >
22- < div style = { { paddingBottom : 10 } } >
23- < Button variant = "contained" onClick = { getUsers } > Get all users</ Button >
24- </ div >
2522 < div style = { { paddingBottom : 10 } } >
2623 < Button variant = "contained" onClick = { deleteUser } > Delete User</ Button >
2724 </ div >
2825 < div style = { { paddingBottom : 10 } } >
29- < CreateUserForm />
26+ < CreateUserForm />
27+ </ div >
28+ < div style = { { paddingBottom : 10 } } >
29+ < UpdateUserForm />
30+ </ div >
31+ < div style = { { paddingBottom : 10 } } >
32+ < UserList />
3033 </ div >
31- < UpdateUserForm />
3234 </ Grid2 >
3335 < Grid2 >
3436 < div style = { { paddingBottom : 10 } } >
3537 < TextField defaultValue = '-1' id = "project_id" label = "Outlined" variant = "outlined" />
3638 </ div >
37- < div style = { { paddingBottom : 10 } } >
38- < Button variant = "contained" onClick = { getProjects } > Get all projects</ Button >
39- </ div >
4039 < div style = { { paddingBottom : 10 } } >
4140 < Button variant = "contained" onClick = { deleteProject } > Delete Project</ Button >
4241 </ div >
4342 < div style = { { paddingBottom : 10 } } >
4443 < CreateProjectForm />
4544 </ div >
46- < UpdateProjectForm />
45+ < div style = { { paddingBottom : 10 } } >
46+ < UpdateProjectForm />
47+ </ div >
48+ < div style = { { paddingBottom : 10 } } >
49+ < ProjectList />
50+ </ div >
4751 </ Grid2 >
4852 </ Grid2 >
4953 </ div >
0 commit comments