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.
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
 
4
4
  interface UserImageProps {
5
- userHandle?: string;
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?.charAt(0)?.toUpperCase() || '?'; // Fallback to '?' if undefined
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 || 'Unknown'}
24
+ alt={userHandle}
25
25
  className="w-full h-full object-cover rounded-full"
26
26
  />
27
27
  ) : (
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oneslash-design-system",
3
3
  "description": "A design system for the Oneslash projects",
4
- "version": "1.1.23",
4
+ "version": "1.1.24",
5
5
  "private": false,
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",