From fd2205238bf4a3f4c32610ddca7f474a2a1a9b28 Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 26 Oct 2023 02:02:56 +0530 Subject: [PATCH 1/2] fix(react): make the `Avatar` letter uppercase by default --- packages/react/src/components/Header/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Header/Header.tsx b/packages/react/src/components/Header/Header.tsx index 31257bc9..c1cf9d47 100644 --- a/packages/react/src/components/Header/Header.tsx +++ b/packages/react/src/components/Header/Header.tsx @@ -221,7 +221,7 @@ const Header: FC & WithWrapperProps = (props: HeaderProps): ReactEl endIcon: , startIcon: ( - {user?.name?.split('')[0]} + {user?.name?.split('')[0].toUpperCase()} ), ...userDropdownMenuProps.triggerOptions, From a253ada7a9678a9c2bff21b6085659e41fe78703 Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 26 Oct 2023 02:11:30 +0530 Subject: [PATCH 2/2] chore(react): use `toLocaleUpperCase()` --- packages/react/src/components/Header/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Header/Header.tsx b/packages/react/src/components/Header/Header.tsx index c1cf9d47..1458b083 100644 --- a/packages/react/src/components/Header/Header.tsx +++ b/packages/react/src/components/Header/Header.tsx @@ -221,7 +221,7 @@ const Header: FC & WithWrapperProps = (props: HeaderProps): ReactEl endIcon: , startIcon: ( - {user?.name?.split('')[0].toUpperCase()} + {user?.name?.split('')[0].toLocaleUpperCase()} ), ...userDropdownMenuProps.triggerOptions,