comment out unused functions and dropdown in Sidebar component

This commit is contained in:
Vaibhav Surve 2025-04-09 11:50:44 +05:30
parent 95f4443338
commit 68442bdc7c

View File

@ -4,17 +4,17 @@ import menuData from "../../data/menuData.json";
import {getCachedProfileData} from "../../slices/apiDataManager";
const Sidebar = () => {
const logineUser = getCachedProfileData()
// const logineUser = getCachedProfileData()
const navigate = useNavigate()
const handleLogout = (e) => {
e.preventDefault();
// logout();
};
// const handleLogout = (e) => {
// e.preventDefault();
// // logout();
// };
const handleProfilePage = ()=>{
console.log(profile?.employeeInfo?.id)
navigate(`/employee/${profile?.employeeInfo?.id}?for=account`)
}
// const handleProfilePage = ()=>{
// console.log(profile?.employeeInfo?.id)
// navigate(`/employee/${profile?.employeeInfo?.id}?for=account`)
// }
return (
<aside
id="layout-menu"
@ -58,7 +58,7 @@ const Sidebar = () => {
))}
</ul>
<div className="dropdown py-sm-4 mt-sm-auto ms-auto ms-sm-0 flex-shrink-1 ps-5">
{/* <div className="dropdown py-sm-4 mt-sm-auto ms-auto ms-sm-0 flex-shrink-1 ps-5">
<a
href="#"
className="d-flex align-items-center text-decoration-none dropdown-toggle"
@ -137,7 +137,7 @@ const Sidebar = () => {
</a>
</li>
</ul>
</div>
</div> */}
</aside>
);
};