Skip to content

Commit

Permalink
fix(Settings): navigation fix (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeaturner authored Oct 27, 2023
1 parent d610569 commit 47aca9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions client/src/components/navigation/UserDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const UserDropdown: React.FC<UserDropdownProps> = ({
{showAvatar && <Image src={`${user.avatar}`} avatar />}
<Dropdown text={user.firstName + " " + user.lastName}>
<Dropdown.Menu direction="left">
<Dropdown.Item as={Link} to="/account">
<Dropdown.Item as={Link} to="/account/overview">
<Icon name="settings" />
Settings
</Dropdown.Item>
Expand All @@ -45,7 +45,7 @@ const UserDropdown: React.FC<UserDropdownProps> = ({

return (
<Menu.Menu className="!mt-2 !pl-0">
<Menu.Item as={Link} to="/account">
<Menu.Item as={Link} to="/account/overview">
<Icon name="settings" />
Settings
</Menu.Item>
Expand Down
9 changes: 0 additions & 9 deletions client/src/screens/conductor/AccountSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ const AccountSettings = () => {
setLoading(false);
}, [setAccount, setLoading, handleGlobalError]);

/**
* Activate the default pane if one is not yet active.
*/
useEffect(() => {
if (!activePane) {
history.push(`/account/${DEFAULT_ACTIVE_PANE}`);
}
}, [activePane, history]);

/**
* Set the page title and gather data from the server on load.
*/
Expand Down

0 comments on commit 47aca9a

Please sign in to comment.