diff options
Diffstat (limited to 'server/sonar-web/design-system/src/components/avatar')
-rw-r--r-- | server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx b/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx index 38f4fbef6d9..2590ccbefdb 100644 --- a/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx +++ b/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx @@ -32,7 +32,12 @@ export interface GenericAvatarProps { size?: Size; } -export function GenericAvatar({ className, Icon, name, size = 'sm' }: GenericAvatarProps) { +export function GenericAvatar({ + className, + Icon, + name, + size = 'sm', +}: Readonly<GenericAvatarProps>) { const theme = useTheme(); const text = name.length > 0 ? name[0].toUpperCase() : ''; |