feat(SW-2782): Updated header as per design, added language switcher and user menu * feat(SW-2782): Updated header as per design, added language switcher and user menu * feat(SW-2782): Updated UI as per design * feat(SW-2782): Optimised code with use of Popover and modal from RAC Approved-by: Anton Gunnarsson
7 lines
265 B
TypeScript
7 lines
265 B
TypeScript
export function getInitials(firstName: string, lastName: string) {
|
|
if (!firstName || !lastName) return null
|
|
const firstInitial = firstName.charAt(0).toUpperCase()
|
|
const lastInitial = lastName.charAt(0).toUpperCase()
|
|
return `${firstInitial}${lastInitial}`
|
|
}
|