Skip to content

Commit

Permalink
Merge pull request #375 from AutomatingSciencePipeline/339-add-help-b…
Browse files Browse the repository at this point in the history
…utton

339 add help button
  • Loading branch information
rhit-windsors authored Dec 16, 2024
2 parents c50a30d + 9cbaa40 commit c749bf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/frontend/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ import { signOut, useSession } from "next-auth/react";
import toast, { Toaster } from 'react-hot-toast';
import { useRouter, useSearchParams } from 'next/navigation';

const navigation = [{ name: 'Admin', href: '#', current: false }];
const GLADOS_DOCS_LINK = 'https://automatingsciencepipeline.github.io/Monorepo/tutorial/usage/'

const navigation = [
{ name: 'Help', href: GLADOS_DOCS_LINK, current: false }
];
const userNavigation = [
{ name: 'Your Profile', href: '#' },
{ name: 'Sign out', href: '#' },
Expand Down Expand Up @@ -80,6 +84,7 @@ const Navbar = (props) => {
<a
key={item.name}
href={item.href}
target={item.name === 'Help' ? '_blank' : '_self'}
className='px-3 py-2 rounded-md text-sm font-medium text-blue-200 hover:text-white'
aria-current={item.current ? 'page' : undefined}
>
Expand Down Expand Up @@ -152,6 +157,7 @@ const Navbar = (props) => {
key={item.name}
as='a'
href={item.href}
target={item.name === 'Help' ? '_blank' : '_self'}
className={classNames(
item.current ?
'text-white bg-blue-800' :
Expand Down

0 comments on commit c749bf4

Please sign in to comment.