Pestaña nueva

Creacion de la pestaña de la sección de listar admin de comunidad
This commit is contained in:
Traym17 2022-07-14 19:04:30 -06:00
parent 9abdd27b41
commit bf91f1e4b8
2 changed files with 6 additions and 5 deletions

View File

@ -28,7 +28,7 @@ import TreeDemo from './templates/TreeDemo';
import InvalidStateDemo from './templates/InvalidStateDemo';
import BlocksDemo from './templates/BlocksDemo';
import IconsDemo from './templates/IconsDemo';
import FormAdminSistema from './components/FormAdminSistema';
import AdministradoresSistema from './components/AdministradoresSistema';
import Crud from './pages/Crud';
import EmptyPage from './pages/EmptyPage';
@ -162,7 +162,8 @@ const App = () => {
label: 'Home',
items: [
{label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/'},
{label: 'Registro admin sistema', icon: 'pi pi-fw pi-id-card', to: '/formAdminSistema'},
{label: 'Administradores del sistema', icon: 'pi pi-fw pi-id-card', to: '/administradoresSistema'},
{label: 'Administradores de comunidad', icon: 'pi pi-fw pi-id-card', to: '/administradoresSistema'},
{label: 'Log in', icon: 'pi pi-fw pi-id-card', to: '/logIn'}
]
},
@ -316,7 +317,7 @@ const App = () => {
<Route path="/crud" component={Crud} />
<Route path="/empty" component={EmptyPage} />
<Route path="/documentation" component={Documentation} />
<Route path="/formAdminSistema" component={FormAdminSistema} />
<Route path="/administradoresSistema" component={AdministradoresSistema} />
<Route path="/logIn" component={LogIn} />
</div>

View File

@ -4,7 +4,7 @@ import { Button } from 'primereact/button';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
const FormAdminSistema = () => {
const AdministradoresSistema = () => {
const [pokemones,setPokemones]=useState([]);
const [urlFetch,setUrlFetch]=useState('http://localhost:4000/user/findAdminSistema/');
@ -110,4 +110,4 @@ const FormAdminSistema = () => {
)
}
export default React.memo(FormAdminSistema);
export default React.memo(AdministradoresSistema);