Aggiunto logo e corretto StabilimentoProvider per pagina movimenti
All checks were successful
Deploy to VPS / build (push) Successful in 39s
Deploy to VPS / deploy (push) Successful in 29s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
AV77web 2026-05-29 17:34:44 +02:00
parent 70d33380b5
commit 16e05acb53
4 changed files with 27 additions and 16 deletions

BIN
.gitignore vendored

Binary file not shown.

BIN
public/immagini/Logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View file

@ -3,6 +3,7 @@ import { redirect } from "next/navigation";
import { auth } from "@/src/auth";
import SignOutButton from "@/src/components/auth/SignOutButton";
import Navbar from "@/src/components/Navbar";
import { StabilimentoProvider } from "@/src/contexts/StabilimentoContext";
export default async function ManagementLayout({
children,
@ -16,19 +17,21 @@ export default async function ManagementLayout({
}
return (
<div>
<Navbar actions={<SignOutButton />} />
<header className="border-b border-zinc-200 bg-white">
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-3">
<div>
<p className="text-sm font-medium text-zinc-500">Area gestionale</p>
<p className="text-base font-semibold text-zinc-950">
{session.user.utente}
</p>
<StabilimentoProvider>
<div>
<Navbar actions={<SignOutButton />} />
<header className="border-b border-zinc-200 bg-white">
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-3">
<div>
<p className="text-sm font-medium text-zinc-500">Area gestionale</p>
<p className="text-base font-semibold text-zinc-950">
{session.user.utente}
</p>
</div>
</div>
</div>
</header>
<main className="mx-auto max-w-6xl px-4 py-6">{children}</main>
</div>
</header>
<main className="mx-auto max-w-6xl px-4 py-6">{children}</main>
</div>
</StabilimentoProvider>
);
}

View file

@ -5,8 +5,9 @@
// @version: "1.0.0 2026-05-07"
//====================================
"use client"
import { useState , MouseEvent, ReactNode} from "react";
import { ReactNode} from "react";
import Link from "next/link";
import Image from "next/image";
import GlobalStabilimentoSelector from "./GlobalStabilimentoSelector";
interface NavLink {
@ -30,9 +31,16 @@ export default function Navbar({ actions }: { actions?: ReactNode }) {
{/* Logo */}
<Link
href="/"
className="flex items-center font-bold text-zinc-100 hover:text-zinc-300 transition-colors"
className="flex items-center hover:opacity-80 transition-opacity"
>
LOGO
<Image
src="/immagini/Logo.png"
alt="MagRicambi"
width={120}
height={40}
priority
className="h-10 w-auto"
/>
</Link>
{/* Navigation Links */}