From 284298dc5cebd392980b9035e6a23cb4c0ea9976 Mon Sep 17 00:00:00 2001 From: Jared Vu Date: Fri, 4 Oct 2024 11:39:27 -0700 Subject: [PATCH] fix: external nav dialog on api documentation (#1120) --- src/layout/Header/HeaderDesktop.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/layout/Header/HeaderDesktop.tsx b/src/layout/Header/HeaderDesktop.tsx index a9caf6c12..78240cac1 100644 --- a/src/layout/Header/HeaderDesktop.tsx +++ b/src/layout/Header/HeaderDesktop.tsx @@ -123,7 +123,15 @@ export const HeaderDesktop = () => { value: 'DOCUMENTATION', slotBefore: , label: stringGetter({ key: STRING_KEYS.API_DOCUMENTATION }), - href: documentation, + onClick: () => { + dispatch( + openDialog( + DialogTypes.ExternalLink({ + link: documentation, + }) + ) + ); + }, }, { value: 'MINTSCAN',