modified impresions to role = 5
This commit is contained in:
@@ -60,16 +60,17 @@ function SearchUserWithDate(props: urlProp) {
|
||||
|
||||
<label className="label">Fecha</label>
|
||||
<div className="groupInput">
|
||||
|
||||
<input
|
||||
type="date"
|
||||
value={date}
|
||||
onChange={(e) => setDate(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<button className="button buttonSearch" type="submit">
|
||||
Buscar
|
||||
</button>
|
||||
<button className="button buttonSearch" type="submit">
|
||||
Buscar
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import BarNavigation from "../BarNavigation/BarNavigation";
|
||||
import header from "./Header.module.css";
|
||||
import { cookies } from "next/headers";
|
||||
import BarNavigationServicio from "../BarNavigation/BarNavigationServicio";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export default async function Header() {
|
||||
const cookieStore = await cookies();
|
||||
@@ -29,11 +29,11 @@ export default async function Header() {
|
||||
</Link>
|
||||
<div className={header.yellowPart}></div>
|
||||
<div className={header.containerBarNav}>
|
||||
{role === "ADMINIS.TRADOR" && <BarNavigation />}
|
||||
{role === "SUPER ADMINISTRADOR (quita sanciones)" && <BarNavigation />}
|
||||
{role === "ADMINISTRADOR" && <BarNavigation/>}
|
||||
{role === "ATENCION A USUARIO" && <BarNavigation/>}
|
||||
{role === "SERVICIO SOCIAL" && <BarNavigationServicio/>}
|
||||
{role === "1" && <BarNavigation />}
|
||||
{role === "4" && <BarNavigation />}
|
||||
|
||||
{role === "2" && <BarNavigationServicio/>}
|
||||
{role === "3" && <BarNavigationServicio/>}
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user