diff --git a/web/src/components/UserDropdown.tsx b/web/src/components/UserDropdown.tsx index cf12b72d82c..8a8db182299 100644 --- a/web/src/components/UserDropdown.tsx +++ b/web/src/components/UserDropdown.tsx @@ -23,6 +23,7 @@ interface DropdownOptionProps { onClick?: () => void; icon: React.ReactNode; label: string; + openInNewTab?: boolean; } const DropdownOption: React.FC = ({ @@ -30,6 +31,7 @@ const DropdownOption: React.FC = ({ onClick, icon, label, + openInNewTab, }) => { const content = (
@@ -38,11 +40,19 @@ const DropdownOption: React.FC = ({
); - return href ? ( - {content} - ) : ( -
{content}
- ); + if (href) { + return ( + + {content} + + ); + } else { + return
{content}
; + } }; export function UserDropdown({ @@ -173,6 +183,7 @@ export function UserDropdown({ ) } label={item.title} + openInNewTab /> ))}