Skip to content

Commit 962410c

Browse files
authored
Merge pull request #1495 from layer5io/fix/collaborator-border-color-canonical
fix(CollaboratorAvatarGroup): canonicalize User.border_color → borderColor
2 parents 0266326 + fd53f77 commit 962410c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/custom/CollaboratorAvatarGroup/CollaboratorAvatarGroup.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { CustomTooltip } from '../CustomTooltip';
1616
* 'client1': {
1717
* name: 'John Doe',
1818
* avatarUrl: 'https://example.com/avatar1.jpg',
19-
* border_color: '#00B39F',
19+
* borderColor: '#00B39F',
2020
* userId: 'user123'
2121
* }
2222
* };
@@ -33,13 +33,13 @@ import { CustomTooltip } from '../CustomTooltip';
3333
* @interface User
3434
* @property {string} name - Display name of the user
3535
* @property {string} avatarUrl - URL to the user's avatar image
36-
* @property {string} border_color - Color code for the avatar border (e.g., '#00B39F')
36+
* @property {string} borderColor - Color code for the avatar border (e.g., '#00B39F')
3737
* @property {string} userId - Unique identifier for the user
3838
*/
3939
interface User {
4040
name: string;
4141
avatarUrl: string;
42-
border_color: string;
42+
borderColor: string;
4343
userId: string;
4444
}
4545

@@ -193,7 +193,7 @@ const CollaboratorAvatarGroup = ({
193193
key={clientID}
194194
alt={user.name}
195195
src={user.avatarUrl}
196-
borderColor={user.border_color}
196+
borderColor={user.borderColor}
197197
imgProps={{ referrerPolicy: 'no-referrer' }}
198198
onClick={() => openInNewTab(`${providerUrl}/user/${user.userId}`)}
199199
/>
@@ -242,7 +242,7 @@ const CollaboratorAvatarGroup = ({
242242
<StyledAvatar
243243
alt={user.name}
244244
src={user.avatarUrl}
245-
borderColor={user.border_color}
245+
borderColor={user.borderColor}
246246
imgProps={{ referrerPolicy: 'no-referrer' }}
247247
/>
248248
<UserName variant="body1">{user.name}</UserName>

0 commit comments

Comments
 (0)