Skip to content

Commit bddf0ae

Browse files
committed
Added help document to user dropdown menu
Jira ticket: CAMS-440
1 parent fede00c commit bddf0ae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

user-interface/src/lib/components/Header.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ function mapNavState(path: string) {
4141
}
4242

4343
const userMenuItems: MenuItem[] = [
44+
{
45+
label: 'Help',
46+
address: 'https://doj365.sharepoint.us/sites/USTP-OIT/SitePages/CAMS.aspx',
47+
target: 'cams_help',
48+
},
4449
{
4550
label: 'Logout',
4651
address: LOGOUT_PATH,

user-interface/src/lib/components/cams/DropdownMenu/DropdownMenu.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export type MenuItem = {
88
address: string;
99
title?: string;
1010
className?: string;
11+
target?: string;
1112
};
1213

1314
export type DropdownMenuProps = {
@@ -145,6 +146,7 @@ export function DropdownMenu(props: DropdownMenuProps) {
145146
data-testid={`menu-item-${id}-${idx}`}
146147
className="usa-nav-link"
147148
title={item.title ?? ''}
149+
target={item.target}
148150
onKeyDown={handleSubItemKeyDown}
149151
>
150152
{item.label}

0 commit comments

Comments
 (0)