Skip to content

Commit

Permalink
fix: external nav dialog on api documentation (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredvu authored Oct 4, 2024
1 parent f9867db commit 284298d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/layout/Header/HeaderDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ export const HeaderDesktop = () => {
value: 'DOCUMENTATION',
slotBefore: <Icon iconName={IconName.Terminal} />,
label: stringGetter({ key: STRING_KEYS.API_DOCUMENTATION }),
href: documentation,
onClick: () => {
dispatch(
openDialog(
DialogTypes.ExternalLink({
link: documentation,
})
)
);
},
},
{
value: 'MINTSCAN',
Expand Down

0 comments on commit 284298d

Please sign in to comment.