Skip to content

Commit

Permalink
aider: Reversed the order of the 'Login' and 'Datasets' buttons in th…
Browse files Browse the repository at this point in the history
…e navigation. (#1366)
  • Loading branch information
theosanderson authored Mar 16, 2024
1 parent 0314777 commit 20cab57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/src/routes/navigationItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ function topNavigationItems(organism: string | undefined, isLoggedIn: boolean, l
text: 'Submit',
path: routes.organismSelectorPage('submit'),
},
...(isLoggedIn
? [{ text: 'My account', path: routes.userOverviewPage() }]
: [{ text: 'Login', path: loginUrl! }]),
{
text: 'Datasets',
path: routes.datasetsPage(),
},
...(isLoggedIn
? [{ text: 'My account', path: routes.userOverviewPage() }]
: [{ text: 'Login', path: loginUrl! }]),
];
}

Expand All @@ -35,12 +35,12 @@ function topNavigationItems(organism: string | undefined, isLoggedIn: boolean, l
text: 'Submit',
path: routes.submissionPage(organism),
},
...(isLoggedIn
? [{ text: 'My account', path: routes.userOverviewPage(organism) }]
: [{ text: 'Login', path: loginUrl! }]),
{
text: 'Datasets',
path: routes.datasetsPage(),
},
...(isLoggedIn
? [{ text: 'My account', path: routes.userOverviewPage(organism) }]
: [{ text: 'Login', path: loginUrl! }]),
];
}

0 comments on commit 20cab57

Please sign in to comment.