Add Discord link as menu option!

This commit is contained in:
jahooma 2021-12-31 14:33:05 -06:00
parent 7d5e02a69c
commit 50e3dc5cd0
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ export function MenuButton(props: {
{({ active }) => ( {({ active }) => (
<a <a
href={item.href} href={item.href}
target={item.href.startsWith('http') ? '_blank' : undefined}
onClick={item.onClick} onClick={item.onClick}
className={clsx( className={clsx(
active ? 'bg-gray-100' : '', active ? 'bg-gray-100' : '',

View File

@ -48,7 +48,10 @@ function getNavigationOptions(user: User, options: { mobile: boolean }) {
name: 'Your markets', name: 'Your markets',
href: `/${user.username}`, href: `/${user.username}`,
}, },
{
name: 'Discord',
href: 'https://discord.gg/eHQBNBqXuh',
},
{ {
name: 'Sign out', name: 'Sign out',
href: '#', href: '#',