Edit Profile into Profil in Navbar.tsx

Took 2 hours 22 minutes
This commit is contained in:
Lucàs
2023-05-20 14:55:10 +02:00
parent 97dd0d1888
commit 95059f21ac
+4 -5
View File
@@ -11,18 +11,18 @@ import { useRouter } from "next/router";
import { signOut, useSession } from "next-auth/react"; import { signOut, useSession } from "next-auth/react";
type Props = { type Props = {
variant: "static" | "fixed"; variant?: "static" | "fixed";
}; };
export default function Navbar({ variant = "fixed" }: Props) { export default function Navbar({ variant = "fixed" }: Props) {
const router = useRouter(); const router = useRouter();
const { data: session, status } = useSession(); const { status } = useSession();
const MiddleSection = () => { const MiddleSection = () => {
const authenticatedLinks = ( const authenticatedLinks = (
<> <>
<Link href={"/dashboard"}>Tableau de bord</Link> <Link href={"/dashboard"}>Tableau de bord</Link>
<Link href={"/profile"}>Profile</Link> <Link href={"/profile"}>Profil</Link>
<Link href={"/map"}>Carte</Link> <Link href={"/map"}>Carte</Link>
</> </>
); );
@@ -66,8 +66,7 @@ export default function Navbar({ variant = "fixed" }: Props) {
backdropFilter={"auto"} backdropFilter={"auto"}
backdropBlur={"20px"} backdropBlur={"20px"}
px={10} px={10}
py={2} py={2}>
>
<Flex align={"center"}> <Flex align={"center"}>
<Box flexBasis={"100%"}> <Box flexBasis={"100%"}>
<Image src={"/logo.svg"} h={"3rem"} objectFit={"contain"} /> <Image src={"/logo.svg"} h={"3rem"} objectFit={"contain"} />