diff --git a/web-ui/web-react/src/App.js b/web-ui/web-react/src/App.js
index 2f009e72..83530986 100644
--- a/web-ui/web-react/src/App.js
+++ b/web-ui/web-react/src/App.js
@@ -29,6 +29,7 @@ import InvalidStateDemo from './templates/InvalidStateDemo';
import BlocksDemo from './templates/BlocksDemo';
import IconsDemo from './templates/IconsDemo';
import AdministradoresSistema from './components/AdministradoresSistema';
+import AdministradoresComunidad from './components/AdministradoresComunidad';
import Crud from './pages/Crud';
import EmptyPage from './pages/EmptyPage';
@@ -163,7 +164,7 @@ const App = () => {
items: [
{label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/'},
{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: 'Administradores de comunidad', icon: 'pi pi-fw pi-id-card', to: '/administradoresComunidad'},
{label: 'Log in', icon: 'pi pi-fw pi-id-card', to: '/logIn'}
]
},
@@ -318,6 +319,7 @@ const App = () => {
+
diff --git a/web-ui/web-react/src/components/AdministradoresComunidad.js b/web-ui/web-react/src/components/AdministradoresComunidad.js
new file mode 100644
index 00000000..ddf095c1
--- /dev/null
+++ b/web-ui/web-react/src/components/AdministradoresComunidad.js
@@ -0,0 +1,41 @@
+import React, { useEffect, useState } from 'react';
+import { InputText } from 'primereact/inputtext';
+import { Button } from 'primereact/button';
+import { DataTable } from 'primereact/datatable';
+import { Column } from 'primereact/column';
+
+const AdministradoresComunidad = () => {
+
+ const [pokemones,setPokemones]=useState([]);
+ const [urlFetch,setUrlFetch]=useState('http://localhost:4000/user/findAdminSistema/');
+ async function fetchP(){
+ let nombres=await fetch(urlFetch, {method:'GET'});
+ let pokemonesRes= await nombres.json();
+ setPokemones(pokemonesRes.message);
+ console.log(pokemones);
+ }
+ useEffect(()=>{
+ fetchP();
+ },[])
+
+ return (
+
+
+
+
Administradores de comunidad
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export default React.memo(AdministradoresComunidad);
\ No newline at end of file
diff --git a/web-ui/web-react/src/components/AdministradoresSistema.js b/web-ui/web-react/src/components/AdministradoresSistema.js
index aefddc85..02ad4fb9 100644
--- a/web-ui/web-react/src/components/AdministradoresSistema.js
+++ b/web-ui/web-react/src/components/AdministradoresSistema.js
@@ -18,11 +18,6 @@ const AdministradoresSistema = () => {
fetchP();
},[])
-
-
-
-
-
function registrarAdmin() {
var data = {
dni: document.getElementById('identificacion').value,