Skip to content

Commit

Permalink
Merge pull request #1034 from US-Trustee-Program/CAMS-440-help-link
Browse files Browse the repository at this point in the history
CAMS-440: Added help document to user dropdown menu
  • Loading branch information
btposey authored Nov 13, 2024
2 parents fede00c + bddf0ae commit 7eb3735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions user-interface/src/lib/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ function mapNavState(path: string) {
}

const userMenuItems: MenuItem[] = [
{
label: 'Help',
address: 'https://doj365.sharepoint.us/sites/USTP-OIT/SitePages/CAMS.aspx',
target: 'cams_help',
},
{
label: 'Logout',
address: LOGOUT_PATH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type MenuItem = {
address: string;
title?: string;
className?: string;
target?: string;
};

export type DropdownMenuProps = {
Expand Down Expand Up @@ -145,6 +146,7 @@ export function DropdownMenu(props: DropdownMenuProps) {
data-testid={`menu-item-${id}-${idx}`}
className="usa-nav-link"
title={item.title ?? ''}
target={item.target}
onKeyDown={handleSubItemKeyDown}
>
{item.label}
Expand Down

0 comments on commit 7eb3735

Please sign in to comment.