oneslash-design-system 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/userImage.tsx +3 -3
- package/package.json +1 -1
package/components/userImage.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
interface UserImageProps {
|
|
5
|
-
userHandle
|
|
5
|
+
userHandle: string;
|
|
6
6
|
userImgUrl?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ export default function UserImage({
|
|
|
11
11
|
userImgUrl,
|
|
12
12
|
}: UserImageProps) {
|
|
13
13
|
|
|
14
|
-
const defaultInitial = userHandle
|
|
14
|
+
const defaultInitial = userHandle.charAt(0).toUpperCase();
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
17
|
<div
|
|
@@ -21,7 +21,7 @@ export default function UserImage({
|
|
|
21
21
|
{userImgUrl ? (
|
|
22
22
|
<img
|
|
23
23
|
src={userImgUrl}
|
|
24
|
-
alt={userHandle
|
|
24
|
+
alt={userHandle}
|
|
25
25
|
className="w-full h-full object-cover rounded-full"
|
|
26
26
|
/>
|
|
27
27
|
) : (
|