Skip to content

Commit

Permalink
Merge pull request #174 from brionmario/feat-add-components
Browse files Browse the repository at this point in the history
fix(react): make the `Avatar` letter uppercase by default
  • Loading branch information
brionmario authored Oct 26, 2023
2 parents 56e6a86 + a253ada commit 7450aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const Header: FC<HeaderProps> & WithWrapperProps = (props: HeaderProps): ReactEl
endIcon: <ChevronDownIcon />,
startIcon: (
<Avatar className="image" alt="User Image" src={user?.image}>
{user?.name?.split('')[0]}
{user?.name?.split('')[0].toLocaleUpperCase()}
</Avatar>
),
...userDropdownMenuProps.triggerOptions,
Expand Down

0 comments on commit 7450aed

Please sign in to comment.