@@ -16,7 +16,7 @@ const UserIdentifierTooltip = ({
16
16
)
17
17
18
18
export const UserIdentifier = ( {
19
- email ,
19
+ identifier ,
20
20
children,
21
21
rootClassName,
22
22
tooltipContent,
@@ -25,13 +25,13 @@ export const UserIdentifier = ({
25
25
// HOOKS
26
26
const { email : currentUserEmail } = useUserEmail ( )
27
27
28
- if ( ! email ) {
28
+ if ( ! identifier ) {
29
29
return null
30
30
}
31
31
32
32
// CONSTANTS
33
- const isCurrentUser = email === currentUserEmail
34
- const isApiToken = email . startsWith ( API_TOKEN_PREFIX )
33
+ const isCurrentUser = identifier === currentUserEmail
34
+ const isApiToken = identifier . startsWith ( API_TOKEN_PREFIX )
35
35
36
36
const renderIcon = ( ) => {
37
37
if ( isApiToken ) {
@@ -41,7 +41,7 @@ export const UserIdentifier = ({
41
41
return isUserGroup ? (
42
42
< Icon name = "ic-users" color = "N700" size = { 20 } />
43
43
) : (
44
- getAlphabetIcon ( email , 'dc__no-shrink m-0-imp' )
44
+ getAlphabetIcon ( identifier , 'dc__no-shrink m-0-imp' )
45
45
)
46
46
}
47
47
@@ -51,10 +51,10 @@ export const UserIdentifier = ({
51
51
}
52
52
53
53
if ( isApiToken ) {
54
- return email . split ( ':' ) ?. [ 1 ] || '-'
54
+ return identifier . split ( ':' ) ?. [ 1 ] || '-'
55
55
}
56
56
57
- return email
57
+ return identifier
58
58
}
59
59
60
60
return (
@@ -63,7 +63,9 @@ export const UserIdentifier = ({
63
63
{ renderIcon ( ) }
64
64
< div className = "flexbox dc__gap-2" >
65
65
< Tooltip
66
- { ...( tooltipContent ? { content : email , alwaysShowTippyOnHover : false } : { content : email } ) }
66
+ { ...( tooltipContent
67
+ ? { content : identifier , alwaysShowTippyOnHover : false }
68
+ : { content : identifier } ) }
67
69
>
68
70
< span className = "cn-9 fs-13 fw-4 lh-20 dc__truncate" > { renderText ( ) } </ span >
69
71
</ Tooltip >
0 commit comments