diff --git a/resources/ts/front/Components/Layout/Head.tsx b/resources/ts/front/Components/Layout/Head.tsx index 26f490b..7c0adba 100644 --- a/resources/ts/front/Components/Layout/Head.tsx +++ b/resources/ts/front/Components/Layout/Head.tsx @@ -28,7 +28,12 @@ export default function Head({ title, description }: HeadProps) { return ( {title} - {description && } + {description && ( + <> + + + + )} {title && } diff --git a/resources/ts/front/Layouts/AppLayout.tsx b/resources/ts/front/Layouts/AppLayout.tsx index 3a8ba3f..9b71b20 100644 --- a/resources/ts/front/Layouts/AppLayout.tsx +++ b/resources/ts/front/Layouts/AppLayout.tsx @@ -3,7 +3,7 @@ import { type ReactNode } from "react"; import BackToTop from "@/front/partials/BackToTop"; import Footer from "@/front/partials/Footer"; -import useIsMobile from "@/hooks/use-mobile"; +import useDeviceType from "@/hooks/use-device-type"; import { positionBannerButton } from "../Components/cookie/constants"; import CookieNotice from "../Components/cookie/CookieNotice"; @@ -15,13 +15,14 @@ interface AppLayoutProps { } export default function AppLayout({ children }: Readonly) { - const isMobile = useIsMobile(); + const { isMobile } = useDeviceType(); const { canonical } = usePage().props as { canonical?: string }; return (