mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Ensure "Manage account" button in user menu opens a new tab (#34552)
* Fix manage account link * update snap * lint --------- Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
@@ -193,7 +193,15 @@ export function UserMenuView({ vm, className }: UserMenuViewProps): JSX.Element
|
||||
{userId}
|
||||
</Text>
|
||||
{manageAccountHref && (
|
||||
<Button as="a" size="md" kind="tertiary" href={manageAccountHref} Icon={PopOutIcon}>
|
||||
<Button
|
||||
as="a"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
size="md"
|
||||
kind="tertiary"
|
||||
href={manageAccountHref}
|
||||
Icon={PopOutIcon}
|
||||
>
|
||||
{_t("menus|user_menu|manage_account")}
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -460,8 +460,10 @@ exports[`UserMenu > renders a menu without an avatar 1`] = `
|
||||
data-kind="tertiary"
|
||||
data-size="md"
|
||||
href="#"
|
||||
rel="noreferrer noopener"
|
||||
role="link"
|
||||
tabindex="0"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
@@ -948,8 +950,10 @@ exports[`UserMenu > renders an open menu 1`] = `
|
||||
data-kind="tertiary"
|
||||
data-size="md"
|
||||
href="#"
|
||||
rel="noreferrer noopener"
|
||||
role="link"
|
||||
tabindex="0"
|
||||
target="_blank"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
|
||||
Reference in New Issue
Block a user