File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ export interface AvatarDataProps {
20
20
* Tried writing some layout effect/JSX parsing logic to do the extraction,
21
21
* but it added complexity and render overhead, and wasn't reliable enough
22
22
*/
23
- fallbackLetter ?: string ;
23
+ imgFallbackText ?: string ;
24
24
}
25
25
26
26
export const AvatarData : FC < AvatarDataProps > = ( {
27
27
title,
28
28
subtitle,
29
29
src,
30
- fallbackLetter ,
30
+ imgFallbackText ,
31
31
avatar,
32
32
} ) => {
33
33
const theme = useTheme ( ) ;
34
34
avatar ??= (
35
35
< Avatar background src = { src } >
36
- { typeof title === "string" ? title : ( fallbackLetter ?. slice ( 0 , 1 ) ?? "-" ) }
36
+ { typeof title === "string" ? title : ( imgFallbackText ?? "-" ) }
37
37
</ Avatar >
38
38
) ;
39
39
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ import { WorkspaceStatusBadge } from "modules/workspaces/WorkspaceStatusBadge/Wo
25
25
import type { FC } from "react" ;
26
26
import { useQuery } from "react-query" ;
27
27
import { Link as RouterLink } from "react-router-dom" ;
28
+ import { isEmojiUrl } from "utils/appearance" ;
28
29
import { displayDormantDeletion } from "utils/dormant" ;
29
30
import { WorkspaceActions } from "./WorkspaceActions/WorkspaceActions" ;
30
31
import { WorkspaceNotifications } from "./WorkspaceNotifications/WorkspaceNotifications" ;
31
32
import { WorkspaceScheduleControls } from "./WorkspaceScheduleControls" ;
32
33
import type { WorkspacePermissions } from "./permissions" ;
33
- import { isEmojiUrl } from "utils/appearance" ;
34
34
35
35
export type WorkspaceError =
36
36
| "getBuildsError"
@@ -353,6 +353,7 @@ const OrganizationBreadcrumb: FC<OrganizationBreadcrumbProps> = ({
353
353
/>
354
354
)
355
355
}
356
+ imgFallbackText = { orgName }
356
357
/>
357
358
</ HelpTooltipContent >
358
359
</ Popover >
@@ -418,6 +419,7 @@ const WorkspaceBreadcrumb: FC<WorkspaceBreadcrumbProps> = ({
418
419
fitImage
419
420
/>
420
421
}
422
+ imgFallbackText = { templateVersionDisplayName }
421
423
/>
422
424
</ HelpTooltipContent >
423
425
</ Popover >
You can’t perform that action at this time.
0 commit comments