From 6a7bd44063b7e20b1de024e88fe17a445bd3656b Mon Sep 17 00:00:00 2001 From: Abdel LAMRANI Date: Mon, 13 Jul 2026 12:27:56 +0200 Subject: [PATCH] fix: :bug: hook isMobile by changing to another --- resources/ts/front/Layouts/AppLayout.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/ts/front/Layouts/AppLayout.tsx b/resources/ts/front/Layouts/AppLayout.tsx index 3a8ba3f..3df502d 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 (