Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Code clean up #195

Merged
merged 6 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
hot-fix
  • Loading branch information
LieutenantRoger committed Oct 11, 2021
commit 3d7675c58bcfbdf69af728fbceceee92317c1011
3 changes: 3 additions & 0 deletions src/components/Menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const Menu = ({ menu, selected, onSelect, isLoggedIn, onUpdateMenu }) => {

const onSelectMenuItem = (name, path) => {
selectionRef.current.select(name);
if (name == "Gigs") {
window.location.href = `${process.env.URL.BASE}/gigs`;
}
if (path) {
navigate(path);
}
Expand Down
3 changes: 0 additions & 3 deletions src/containers/Menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const MenuContainer = () => {
);
if (name) {
setSelectedMenuItemName(name);
if (name == "Gigs") {
window.location.href = `${process.env.URL.BASE}/gigs`;
}
} else {
setSelectedMenuItemName(null);
}
Expand Down