diff --git a/parfum-shop/src/App.jsx b/parfum-shop/src/App.jsx index 5b49eb7..82ea10d 100644 --- a/parfum-shop/src/App.jsx +++ b/parfum-shop/src/App.jsx @@ -1,4 +1,4 @@ -import { Routes, Route } from "react-router"; +import { Routes, Route, useLocation } from "react-router"; import LandingPage from "./pages/LandingPage"; import ProductDetailPage from "./components/ProductDetailPage"; import AboutPage from "./pages/AboutPage"; @@ -14,6 +14,10 @@ import ShopDrawer from "./components/ShopDrawer"; import CartToast from "./components/CartToast"; function App() { + const location = useLocation(); + const shouldFlushFooter = + location.pathname === "/" || location.pathname.startsWith("/duft/"); + return ( <> @@ -31,7 +35,7 @@ function App() { -