diff --git a/src/client/app.tsx b/src/client/app.tsx index f7bf3b2..3f8bec3 100644 --- a/src/client/app.tsx +++ b/src/client/app.tsx @@ -16,6 +16,7 @@ import BookingStatusPage from "@/client/components/booking-status-page"; import ReviewSubmissionPage from "@/client/components/review-submission-page"; import LegalPage from "@/client/components/legal-page"; import { ProfileLanding } from "@/client/components/profile-landing"; +import { PWAInstallPrompt } from "@/client/components/pwa-install-prompt"; function App() { const { user, isLoading, isOwner } = useAuth(); @@ -36,10 +37,15 @@ function App() { // Handle booking status page const path = window.location.pathname; + const PwaPrompt = ; + if (path.startsWith('/booking/')) { const token = path.split('/booking/')[1]; if (token) { - return ; + return <> + {PwaPrompt} + + ; } } @@ -47,7 +53,10 @@ function App() { if (path.startsWith('/review/')) { const token = path.split('/review/')[1]; if (token) { - return ; + return <> + {PwaPrompt} + + ; } } @@ -381,6 +390,9 @@ function App() { )} + {/* PWA Installation Prompt for iOS */} +