mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 03:03:45 +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}
|
{userId}
|
||||||
</Text>
|
</Text>
|
||||||
{manageAccountHref && (
|
{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")}
|
{_t("menus|user_menu|manage_account")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -460,8 +460,10 @@ exports[`UserMenu > renders a menu without an avatar 1`] = `
|
|||||||
data-kind="tertiary"
|
data-kind="tertiary"
|
||||||
data-size="md"
|
data-size="md"
|
||||||
href="#"
|
href="#"
|
||||||
|
rel="noreferrer noopener"
|
||||||
role="link"
|
role="link"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
@@ -948,8 +950,10 @@ exports[`UserMenu > renders an open menu 1`] = `
|
|||||||
data-kind="tertiary"
|
data-kind="tertiary"
|
||||||
data-size="md"
|
data-size="md"
|
||||||
href="#"
|
href="#"
|
||||||
|
rel="noreferrer noopener"
|
||||||
role="link"
|
role="link"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
target="_blank"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
|||||||
Reference in New Issue
Block a user