auth more stuff

This commit is contained in:
Sir Blob
2025-01-26 03:37:02 -05:00
parent 84fe04f3c4
commit 69c3d0d574
5 changed files with 6 additions and 18 deletions

View File

@@ -43,10 +43,6 @@ const AccountPage = () => {
}
};
if (!userData) {
router.push('/');
}
return (
<div className="container mx-auto p-4">
<Card>

View File

@@ -26,9 +26,7 @@ export default function Dashboard() {
if (userData.role !== "doctor") {
router.push("/suite/patient/dashboard");
}
} else {
router.push("/");
}
}
const patients = [
{ id: 1, name: "John Doe", age: 30, lastVisit: "2024-10-01" },

View File

@@ -23,9 +23,7 @@ const AccountPage = () => {
if (userData.role !== "doctor") {
router.push("/suite/patient/dashboard");
}
} else {
router.push("/");
}
}
return (
<div className="container mx-auto p-4">

View File

@@ -31,9 +31,7 @@ export default function Chat() {
if (userData.role !== "doctor") {
router.push("/suite/patient/dashboard");
}
} else {
router.push("/");
}
}
return (
<div className="container mx-auto">

View File

@@ -26,9 +26,7 @@ export default function Dashboard() {
if (userData.role !== "doctor") {
router.push("/suite/patient/dashboard");
}
} else {
router.push("/");
}
}
return (
<div className="container mx-auto">