Aggiunto logo e corretto StabilimentoProvider per pagina movimenti
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
70d33380b5
commit
16e05acb53
4 changed files with 27 additions and 16 deletions
BIN
.gitignore
vendored
BIN
.gitignore
vendored
Binary file not shown.
BIN
public/immagini/Logo.png
Normal file
BIN
public/immagini/Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 57 KiB |
|
|
@ -3,6 +3,7 @@ import { redirect } from "next/navigation";
|
||||||
import { auth } from "@/src/auth";
|
import { auth } from "@/src/auth";
|
||||||
import SignOutButton from "@/src/components/auth/SignOutButton";
|
import SignOutButton from "@/src/components/auth/SignOutButton";
|
||||||
import Navbar from "@/src/components/Navbar";
|
import Navbar from "@/src/components/Navbar";
|
||||||
|
import { StabilimentoProvider } from "@/src/contexts/StabilimentoContext";
|
||||||
|
|
||||||
export default async function ManagementLayout({
|
export default async function ManagementLayout({
|
||||||
children,
|
children,
|
||||||
|
|
@ -16,19 +17,21 @@ export default async function ManagementLayout({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<StabilimentoProvider>
|
||||||
<Navbar actions={<SignOutButton />} />
|
<div>
|
||||||
<header className="border-b border-zinc-200 bg-white">
|
<Navbar actions={<SignOutButton />} />
|
||||||
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-3">
|
<header className="border-b border-zinc-200 bg-white">
|
||||||
<div>
|
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-3">
|
||||||
<p className="text-sm font-medium text-zinc-500">Area gestionale</p>
|
<div>
|
||||||
<p className="text-base font-semibold text-zinc-950">
|
<p className="text-sm font-medium text-zinc-500">Area gestionale</p>
|
||||||
{session.user.utente}
|
<p className="text-base font-semibold text-zinc-950">
|
||||||
</p>
|
{session.user.utente}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</header>
|
||||||
</header>
|
<main className="mx-auto max-w-6xl px-4 py-6">{children}</main>
|
||||||
<main className="mx-auto max-w-6xl px-4 py-6">{children}</main>
|
</div>
|
||||||
</div>
|
</StabilimentoProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@
|
||||||
// @version: "1.0.0 2026-05-07"
|
// @version: "1.0.0 2026-05-07"
|
||||||
//====================================
|
//====================================
|
||||||
"use client"
|
"use client"
|
||||||
import { useState , MouseEvent, ReactNode} from "react";
|
import { ReactNode} from "react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import Image from "next/image";
|
||||||
import GlobalStabilimentoSelector from "./GlobalStabilimentoSelector";
|
import GlobalStabilimentoSelector from "./GlobalStabilimentoSelector";
|
||||||
|
|
||||||
interface NavLink {
|
interface NavLink {
|
||||||
|
|
@ -30,9 +31,16 @@ export default function Navbar({ actions }: { actions?: ReactNode }) {
|
||||||
{/* Logo */}
|
{/* Logo */}
|
||||||
<Link
|
<Link
|
||||||
href="/"
|
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>
|
</Link>
|
||||||
|
|
||||||
{/* Navigation Links */}
|
{/* Navigation Links */}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue