Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions components/Navbar/NavMenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@
"link": "/vaults"
}
]
},
{
"targetBlank": true,
"label": "Analytics",
"link": "https://info.whitewhale.money/pools"
}
]
4 changes: 4 additions & 0 deletions components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const Navbar = () => {
label: 'Bridge',
link: 'https://tfm.com/bridge',
},
{
label: 'Analytics',
link: 'https://info.whitewhale.money/pools',
},
]

return (
Expand Down
14 changes: 9 additions & 5 deletions components/Navbar/NavbarPopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ const NavbarPopper = ({ menu, currentChainName, chainId }) => {
initialFocusRef={firstFieldRef}
// Children defining sub menu items
onOpen={
menu.isExternal
? openLink(`${menu.link}/?chainFrom=${chainId}&chainTo=${BRIDGE_NETWORK_DEFAULTS[chainId]}`)
: !menu?.children
? () => push(`/${currentChainName}${menu.link}`)
: onOpen
// For a menu item that should open in a new tab
menu.targetBlank
? openLink(menu.link)
// Specifically meant for linking to the TFM Bridge page
: menu.isExternal
? openLink(`${menu.link}/?chainFrom=${chainId}&chainTo=${BRIDGE_NETWORK_DEFAULTS[chainId]}`)
: !menu?.children
? () => push(`/${currentChainName}${menu.link}`)
: onOpen
}
onClose={onClose}
>
Expand Down