Student dashboard
Student dashboard
<li
className={`tab text-xl font-semibold p-3 ${
currentTab === "ViewProfile" ? "text-green-300" : "text-white"
}`}
>
<Link
to="/StudentDashboard/ViewProfile"
onClick={() => handleTabClick("ViewProfile")}
>
View Profile
</Link>
</li>
<li
className={`tab text-xl font-semibold p-3 ${currentTab === "logOut" ?
"text-green-300" : "text-white"}`}
onClick={toggleLogout}
>
Logout
</li>
</ul>
);
return (
<>
<div className="interface flex text-green-300">
<div className="side-bar bg-green-500 w-1/5 h-screen pt-6">
<img className="h-24 w-24 mb-10" src="/assets/logo.png" alt="logo" />
{renderTabs()}
</div>
<div className="content w-4/5">
<div className="top">
<p className="greeting text-2xl font-medium mb-20 py-6 px-3 bg-green-
200">
Hi, userData.firstname
</p>
</div>
<div className="tab-contents">{routes}</div>
</div>
</div>
{logOut && <LogOut onClose={toggleLogout} />}
</>
);
};