From 84fe04f3c4271a64cbb3f8c6967f5683403bf32b Mon Sep 17 00:00:00 2001 From: Sir Blob <76974209+GamerBoss101@users.noreply.github.com> Date: Sun, 26 Jan 2025 03:31:43 -0500 Subject: [PATCH] auth stuff --- .../(panels)/suite/doctor/account/page.jsx | 7 ++++- .../doctor/dashboard/{page.tsx => page.jsx} | 25 ++++++++++++++++++ .../(panels)/suite/patient/account/page.jsx | 11 +++++--- .../suite/patient/chat/{page.tsx => page.jsx} | 26 +++++++++++++++++++ .../(panels)/suite/patient/dashboard/page.jsx | 14 ++++++++-- tsconfig.json | 2 +- 6 files changed, 78 insertions(+), 7 deletions(-) rename src/app/(panels)/suite/doctor/dashboard/{page.tsx => page.jsx} (52%) rename src/app/(panels)/suite/patient/chat/{page.tsx => page.jsx} (68%) diff --git a/src/app/(panels)/suite/doctor/account/page.jsx b/src/app/(panels)/suite/doctor/account/page.jsx index 613633b..1d24a5a 100644 --- a/src/app/(panels)/suite/doctor/account/page.jsx +++ b/src/app/(panels)/suite/doctor/account/page.jsx @@ -12,7 +12,10 @@ import { ChevronDown } from "lucide-react" import { PersonForm } from './PatientForm'; +import { useRouter } from 'next/navigation'; + const AccountPage = () => { + const router = useRouter(); const { user } = useUser(); const [userData, setUserData] = useState(null); const [patients, setPatients] = useState([]); @@ -40,7 +43,9 @@ const AccountPage = () => { } }; - if (!userData) return