fix: only phrasing content is allowed inside buttons meaning no div or p elements, these are now replaced by span
This commit is contained in:
@@ -47,8 +47,10 @@ export default function MyPagesMenu({
|
||||
onClick={() => toggleDropdown(DropdownTypeEnum.MyPagesMenu)}
|
||||
>
|
||||
<Avatar initials={getInitials(user.firstName, user.lastName)} />
|
||||
<Subtitle type="two">
|
||||
{intl.formatMessage({ id: "Hi" })} {user.firstName}!
|
||||
<Subtitle type="two" asChild>
|
||||
<span>
|
||||
{intl.formatMessage({ id: "Hi" })} {user.firstName}!
|
||||
</span>
|
||||
</Subtitle>
|
||||
<ChevronDownIcon
|
||||
className={`${styles.chevron} ${isMyPagesMenuOpen ? styles.isExpanded : ""}`}
|
||||
|
||||
Reference in New Issue
Block a user