comment out unused functions and dropdown in Sidebar component
This commit is contained in:
parent
95f4443338
commit
68442bdc7c
@ -4,17 +4,17 @@ import menuData from "../../data/menuData.json";
|
|||||||
import {getCachedProfileData} from "../../slices/apiDataManager";
|
import {getCachedProfileData} from "../../slices/apiDataManager";
|
||||||
|
|
||||||
const Sidebar = () => {
|
const Sidebar = () => {
|
||||||
const logineUser = getCachedProfileData()
|
// const logineUser = getCachedProfileData()
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const handleLogout = (e) => {
|
// const handleLogout = (e) => {
|
||||||
e.preventDefault();
|
// e.preventDefault();
|
||||||
// logout();
|
// // logout();
|
||||||
};
|
// };
|
||||||
|
|
||||||
const handleProfilePage = ()=>{
|
// const handleProfilePage = ()=>{
|
||||||
console.log(profile?.employeeInfo?.id)
|
// console.log(profile?.employeeInfo?.id)
|
||||||
navigate(`/employee/${profile?.employeeInfo?.id}?for=account`)
|
// navigate(`/employee/${profile?.employeeInfo?.id}?for=account`)
|
||||||
}
|
// }
|
||||||
return (
|
return (
|
||||||
<aside
|
<aside
|
||||||
id="layout-menu"
|
id="layout-menu"
|
||||||
@ -58,7 +58,7 @@ const Sidebar = () => {
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</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
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
className="d-flex align-items-center text-decoration-none dropdown-toggle"
|
className="d-flex align-items-center text-decoration-none dropdown-toggle"
|
||||||
@ -137,7 +137,7 @@ const Sidebar = () => {
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div> */}
|
||||||
</aside>
|
</aside>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user