Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Aug 19, 2024
1 parent f0cb65e commit 014df63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/routes/navigationItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const navigationItems = {
bottom: bottomNavigationItems,
};

function getCommonItems(organism: string | undefined) {
function getSequenceRelatedItems(organism: string | undefined) {
return [
{
text: 'Browse',
Expand Down Expand Up @@ -37,8 +37,8 @@ function getAccountItem(isLoggedIn: boolean, loginUrl: string | undefined, organ
}

function topNavigationItems(organism: string | undefined, isLoggedIn: boolean, loginUrl: string | undefined) {
const commonItems = getCommonItems(organism);
const sequenceRelatedItems = getSequenceRelatedItems(organism);
const accountItem = getAccountItem(isLoggedIn, loginUrl, organism);

return [...commonItems, ...extraTopNavigationItems, accountItem];
return [...sequenceRelatedItems, ...extraTopNavigationItems, accountItem];
}

0 comments on commit 014df63

Please sign in to comment.