Started creating a user type specific dashboard
This commit is contained in:
@@ -23,6 +23,7 @@ import Link from "next/link";
|
||||
import {MODULE_ARRAY} from "@/utils/moduleUtils";
|
||||
import ProfileSummary from "@/components/ProfileSummary";
|
||||
import StudentDashboard from "@/dashboards/Student";
|
||||
import OwnerDashboard from "@/dashboards/Owner";
|
||||
|
||||
export const getServerSideProps = withIronSessionSsr(({req, res}) => {
|
||||
const user = req.session.user;
|
||||
@@ -164,7 +165,7 @@ export default function Home() {
|
||||
{user.type === "teacher" && <StudentDashboard user={user} />}
|
||||
{user.type === "admin" && <StudentDashboard user={user} />}
|
||||
{user.type === "owner" && <StudentDashboard user={user} />}
|
||||
{user.type === "developer" && <StudentDashboard user={user} />}
|
||||
{user.type === "developer" && <OwnerDashboard user={user} />}
|
||||
</Layout>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user