Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions public/dashboard/sidebar/home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/layout/dashboard-layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ const navItems = [
];

const dropdownOptions = [
{
label: 'Home',
iconSrc: '/dashboard/sidebar/home.svg',
iconAlt: 'Home',
action: 'home',
},
{
label: 'Switch Account',
iconSrc: '/dashboard/sidebar/account-switch.svg',
Expand Down
2 changes: 2 additions & 0 deletions src/components/layout/dashboard-layout/UserProfileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export default function UserProfileMenu({
if (option.action === 'logout') {
dispatch(logout());
router.push('/login');
} else if (option.action === 'home') {
router.push('/');
}
handleMenuClose();
};
Expand Down