Merge branch 'develop' into trunk
This commit is contained in:
commit
f43cb28a7d
1 changed files with 6 additions and 3 deletions
|
|
@ -1,10 +1,11 @@
|
|||
// * PACKAGES
|
||||
import { Link } from "@inertiajs/react";
|
||||
import { Link, usePage } from "@inertiajs/react";
|
||||
import { route } from "ziggy-js";
|
||||
//* BASE
|
||||
import DynamicPageResolver from "../DynamicPageResolver";
|
||||
import { bgColors, verticalPlacements } from "@/front/lib/constants";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { AppEnv } from "@/types/global";
|
||||
// * THEME
|
||||
import Logo from "./Logo";
|
||||
import SocialNetworks from "./SocialNetworks";
|
||||
|
|
@ -12,6 +13,8 @@ import ActionSection from "$/uwil/ActionSection";
|
|||
import CookieNoticeLink from "$/uwil/CookieNoticeLink";
|
||||
|
||||
export default function Footer() {
|
||||
const { url } = usePage().props.appEnv as AppEnv;
|
||||
const cleanUrl = url.endsWith("/") ? url : url + "/";
|
||||
const hoverLink = "hover:text-primary-foreground/80";
|
||||
|
||||
return (
|
||||
|
|
@ -34,14 +37,14 @@ export default function Footer() {
|
|||
<ul className="flex flex-col gap-3 md:gap-0 md:flex-row items-center justify-around font-medium">
|
||||
<DynamicPageResolver pageKey="pageMentionsLegales">
|
||||
{({ href, title }) => (
|
||||
<Link href={href} className={cn(hoverLink)}>
|
||||
<Link href={`${cleanUrl}${href}`} className={cn(hoverLink)}>
|
||||
{title}
|
||||
</Link>
|
||||
)}
|
||||
</DynamicPageResolver>
|
||||
<DynamicPageResolver pageKey="pageCharteDeConfidentialite">
|
||||
{({ href, title }) => (
|
||||
<Link href={href} className={cn(hoverLink)}>
|
||||
<Link href={`${cleanUrl}${href}`} className={cn(hoverLink)}>
|
||||
{title}
|
||||
</Link>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue