From 7b4454a5c8e12622f0e8138a9d33834f268d793a Mon Sep 17 00:00:00 2001 From: remizov Date: Mon, 26 Aug 2024 12:44:57 +0300 Subject: [PATCH] 4798 add link to docs --- .../layouts/partials/LeftBarMenu/LeftBarMenuItem.tsx | 4 +++- .../layouts/partials/MainLeftSideBar/MainLeftSideBar.tsx | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/smart-frontend/app/src/components/layouts/partials/LeftBarMenu/LeftBarMenuItem.tsx b/smart-frontend/app/src/components/layouts/partials/LeftBarMenu/LeftBarMenuItem.tsx index 6e51f24ca4..fbc19aa38f 100644 --- a/smart-frontend/app/src/components/layouts/partials/LeftBarMenu/LeftBarMenuItem.tsx +++ b/smart-frontend/app/src/components/layouts/partials/LeftBarMenu/LeftBarMenuItem.tsx @@ -45,8 +45,10 @@ const LeftBarMenuItem: React.FC = ({ icon, label, to, onCl ); if (to) { + const target = typeof to === 'string' && to.startsWith('http') ? '_blank' : undefined; + return ( - + {itemContent} ); diff --git a/smart-frontend/app/src/components/layouts/partials/MainLeftSideBar/MainLeftSideBar.tsx b/smart-frontend/app/src/components/layouts/partials/MainLeftSideBar/MainLeftSideBar.tsx index 84a8118c59..2148a437b3 100644 --- a/smart-frontend/app/src/components/layouts/partials/MainLeftSideBar/MainLeftSideBar.tsx +++ b/smart-frontend/app/src/components/layouts/partials/MainLeftSideBar/MainLeftSideBar.tsx @@ -35,7 +35,11 @@ const MainLeftSideBar: React.FC = () => { - +