Pestaña nueva
Creacion de la pestaña de la sección de listar admin de comunidad
This commit is contained in:
parent
9abdd27b41
commit
bf91f1e4b8
|
@ -28,7 +28,7 @@ import TreeDemo from './templates/TreeDemo';
|
||||||
import InvalidStateDemo from './templates/InvalidStateDemo';
|
import InvalidStateDemo from './templates/InvalidStateDemo';
|
||||||
import BlocksDemo from './templates/BlocksDemo';
|
import BlocksDemo from './templates/BlocksDemo';
|
||||||
import IconsDemo from './templates/IconsDemo';
|
import IconsDemo from './templates/IconsDemo';
|
||||||
import FormAdminSistema from './components/FormAdminSistema';
|
import AdministradoresSistema from './components/AdministradoresSistema';
|
||||||
|
|
||||||
import Crud from './pages/Crud';
|
import Crud from './pages/Crud';
|
||||||
import EmptyPage from './pages/EmptyPage';
|
import EmptyPage from './pages/EmptyPage';
|
||||||
|
@ -162,7 +162,8 @@ const App = () => {
|
||||||
label: 'Home',
|
label: 'Home',
|
||||||
items: [
|
items: [
|
||||||
{label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/'},
|
{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'}
|
{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="/crud" component={Crud} />
|
||||||
<Route path="/empty" component={EmptyPage} />
|
<Route path="/empty" component={EmptyPage} />
|
||||||
<Route path="/documentation" component={Documentation} />
|
<Route path="/documentation" component={Documentation} />
|
||||||
<Route path="/formAdminSistema" component={FormAdminSistema} />
|
<Route path="/administradoresSistema" component={AdministradoresSistema} />
|
||||||
<Route path="/logIn" component={LogIn} />
|
<Route path="/logIn" component={LogIn} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { Button } from 'primereact/button';
|
||||||
import { DataTable } from 'primereact/datatable';
|
import { DataTable } from 'primereact/datatable';
|
||||||
import { Column } from 'primereact/column';
|
import { Column } from 'primereact/column';
|
||||||
|
|
||||||
const FormAdminSistema = () => {
|
const AdministradoresSistema = () => {
|
||||||
|
|
||||||
const [pokemones,setPokemones]=useState([]);
|
const [pokemones,setPokemones]=useState([]);
|
||||||
const [urlFetch,setUrlFetch]=useState('http://localhost:4000/user/findAdminSistema/');
|
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);
|
Loading…
Reference in New Issue