auth more stuff
This commit is contained in:
@@ -43,10 +43,6 @@ const AccountPage = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!userData) {
|
|
||||||
router.push('/');
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto p-4">
|
<div className="container mx-auto p-4">
|
||||||
<Card>
|
<Card>
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ export default function Dashboard() {
|
|||||||
if (userData.role !== "doctor") {
|
if (userData.role !== "doctor") {
|
||||||
router.push("/suite/patient/dashboard");
|
router.push("/suite/patient/dashboard");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
router.push("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
const patients = [
|
const patients = [
|
||||||
{ id: 1, name: "John Doe", age: 30, lastVisit: "2024-10-01" },
|
{ id: 1, name: "John Doe", age: 30, lastVisit: "2024-10-01" },
|
||||||
|
|||||||
@@ -23,10 +23,8 @@ const AccountPage = () => {
|
|||||||
if (userData.role !== "doctor") {
|
if (userData.role !== "doctor") {
|
||||||
router.push("/suite/patient/dashboard");
|
router.push("/suite/patient/dashboard");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
router.push("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto p-4">
|
<div className="container mx-auto p-4">
|
||||||
<Card>
|
<Card>
|
||||||
|
|||||||
@@ -31,10 +31,8 @@ export default function Chat() {
|
|||||||
if (userData.role !== "doctor") {
|
if (userData.role !== "doctor") {
|
||||||
router.push("/suite/patient/dashboard");
|
router.push("/suite/patient/dashboard");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
router.push("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto">
|
<div className="container mx-auto">
|
||||||
<div className="grid gap-4">
|
<div className="grid gap-4">
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ export default function Dashboard() {
|
|||||||
if (userData.role !== "doctor") {
|
if (userData.role !== "doctor") {
|
||||||
router.push("/suite/patient/dashboard");
|
router.push("/suite/patient/dashboard");
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
router.push("/");
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto">
|
<div className="container mx-auto">
|
||||||
|
|||||||
Reference in New Issue
Block a user