fix(portal): redirect unauthenticated users to login — never show portal chrome (GRO-309) #191

Merged
groombook-engineer[bot] merged 15 commits from fix/gro-309-landing-page-redirect into main 2026-04-01 03:50:40 +00:00
Showing only changes of commit fa92a65a35 - Show all commits
+7 -2
View File
@@ -1,5 +1,4 @@
import { useState, useEffect } from "react";
import { Navigate } from "react-router-dom";
import { Calendar, Clock, PawPrint, CreditCard, Star, ChevronRight, AlertTriangle } from "lucide-react";
interface DashboardProps {
@@ -184,7 +183,13 @@ export function Dashboard({
}
if (!sessionId) {
return <Navigate to="/login" replace />;
return (
<div className="space-y-6">
<div className="bg-stone-100 rounded-2xl p-5 text-center">
<p className="text-stone-600">Please sign in to view your dashboard.</p>
</div>
</div>
);
}
const upcomingAppointments = getUpcomingAppointments();