funcionalidad hecha

This commit is contained in:
Mariela 2022-08-11 01:12:15 -06:00
parent 24edd8b70a
commit 5ba3fce7e3
4 changed files with 402 additions and 418 deletions

View File

@ -171,12 +171,12 @@ const App = () => {
const menu2 = [ const menu2 = [
{ {
label: 'Home', label: 'Inicio',
items: [ items: [
{ label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' }, { label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' },
{ label: 'Administradores del sistema', icon: 'pi pi-fw pi-id-card', to: '/administradoresSistema' }, { label: 'Administradores del sistema',icon: PrimeIcons.USERS, to: '/administradoresSistema' },
{ label: 'Administradores de comunidad', icon: 'pi pi-fw pi-id-card', to: '/administradoresComunidad' }, { label: 'Administradores de comunidad', icon: PrimeIcons.USERS, to: '/administradoresComunidad' },
{ label: 'Comunidadades', icon: 'pi pi-fw pi-id-card', to: '/comunidadesViviendas' }, { label: 'Comunidades', icon: PrimeIcons.BUILDING, to: '/comunidadesViviendas' },
] ]
} }
] ]
@ -184,11 +184,16 @@ const App = () => {
const menu3 = [ const menu3 = [
{ {
label: 'Home', label: 'Inicio',
items: [ items: [
{ label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' }, { label: 'Dashboard', icon: 'pi pi-fw pi-home', to: '/' },
{ label: 'Inquilinos', icon: 'pi pi-fw pi-id-card', to: '/inquilinos' }, { label: 'Inquilinos', icon: PrimeIcons.USERS, to: '/inquilinos' },
{ label: 'Guardas de seguridad', icon: 'pi pi-fw pi-id-card', to: '/guardasSeguridad' }, { label: 'Guardas de seguridad', icon: PrimeIcons.LOCK, to: '/guardasSeguridad' },
{
label: 'Áreas Comunes de Comunidad',
icon: PrimeIcons.BUILDING,
to: '/areasComunes',
},
] ]
}, },
] ]
@ -202,6 +207,10 @@ const App = () => {
} }
const menu = [ const menu = [
{
label: 'Inicio',
items:
[
{ {
label: 'Administradores del sistema', label: 'Administradores del sistema',
icon: PrimeIcons.USERS, icon: PrimeIcons.USERS,
@ -429,6 +438,7 @@ const App = () => {
<Route path="/guardasSeguridad" component={GuardasSeguridad} /> <Route path="/guardasSeguridad" component={GuardasSeguridad} />
<Route path="/comunidadesViviendas" component={Communities} /> <Route path="/comunidadesViviendas" component={Communities} />
<Route path="/inquilinos" component={Inquilinos} /> <Route path="/inquilinos" component={Inquilinos} />
<Route path="/areasComunes" component={AreasComunes} />
<Route path="/login" component={LoginLocalStorage} /> <Route path="/login" component={LoginLocalStorage} />
</div> </div>

View File

@ -157,28 +157,10 @@ export const AppMenu = (props) => {
root={true} root={true}
role="menu" role="menu"
/> />
<a
href="https://www.primefaces.org/primeblocks-react"
className="block mt-3"
>
<img
alt="primeblocks"
className="w-full"
src={
props.layoutColorMode === 'light'
? 'assets/layout/images/banner-primeblocks.png'
: 'assets/layout/images/banner-primeblocks-dark.png'
}
/>
</a>
</div>
);
};
return (
<div className="layout-menu-container">
<AppSubmenu items={props.model} className="layout-menu" onMenuItemClick={props.onMenuItemClick} root={true} role="menu" />
</div> </div>
); );
} }

View File

@ -6,12 +6,7 @@ import Cookies from 'universal-cookie';
const cookies = new Cookies(); const cookies = new Cookies();
export const AppTopbar = (props) => { export const AppTopbar = (props) => {
return (
<div className="layout-topbar">
<Link to="/" className="layout-topbar-logo">
<img src={'assets/layout/images/logo-dark.svg'} alt="logo" />
<span>KATOIKIA</span>
</Link>
function cerrarSesion() { function cerrarSesion() {
cookies.remove('id', { path: "/" }); cookies.remove('id', { path: "/" });

View File

@ -39,9 +39,6 @@ const LogIn = () => {
{/* <Button label="Registrar" onClick={registrarAdmin}></Button> */} {/* <Button label="Registrar" onClick={registrarAdmin}></Button> */}
</div> </div>
</div>
</div>
</div>
); );
}; };