Skip to content

Commit ab432e3

Browse files
committed
blah
1 parent 59214b1 commit ab432e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

site/src/components/AvatarData/AvatarData.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ export interface AvatarDataProps {
2020
* Tried writing some layout effect/JSX parsing logic to do the extraction,
2121
* but it added complexity and render overhead, and wasn't reliable enough
2222
*/
23-
fallbackLetter?: string;
23+
imgFallbackText?: string;
2424
}
2525

2626
export const AvatarData: FC<AvatarDataProps> = ({
2727
title,
2828
subtitle,
2929
src,
30-
fallbackLetter,
30+
imgFallbackText,
3131
avatar,
3232
}) => {
3333
const theme = useTheme();
3434
avatar ??= (
3535
<Avatar background src={src}>
36-
{typeof title === "string" ? title : (fallbackLetter?.slice(0, 1) ?? "-")}
36+
{typeof title === "string" ? title : (imgFallbackText ?? "-")}
3737
</Avatar>
3838
);
3939

site/src/pages/WorkspacePage/WorkspaceTopbar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ import { WorkspaceStatusBadge } from "modules/workspaces/WorkspaceStatusBadge/Wo
2525
import type { FC } from "react";
2626
import { useQuery } from "react-query";
2727
import { Link as RouterLink } from "react-router-dom";
28+
import { isEmojiUrl } from "utils/appearance";
2829
import { displayDormantDeletion } from "utils/dormant";
2930
import { WorkspaceActions } from "./WorkspaceActions/WorkspaceActions";
3031
import { WorkspaceNotifications } from "./WorkspaceNotifications/WorkspaceNotifications";
3132
import { WorkspaceScheduleControls } from "./WorkspaceScheduleControls";
3233
import type { WorkspacePermissions } from "./permissions";
33-
import { isEmojiUrl } from "utils/appearance";
3434

3535
export type WorkspaceError =
3636
| "getBuildsError"
@@ -353,6 +353,7 @@ const OrganizationBreadcrumb: FC<OrganizationBreadcrumbProps> = ({
353353
/>
354354
)
355355
}
356+
imgFallbackText={orgName}
356357
/>
357358
</HelpTooltipContent>
358359
</Popover>
@@ -418,6 +419,7 @@ const WorkspaceBreadcrumb: FC<WorkspaceBreadcrumbProps> = ({
418419
fitImage
419420
/>
420421
}
422+
imgFallbackText={templateVersionDisplayName}
421423
/>
422424
</HelpTooltipContent>
423425
</Popover>

0 commit comments

Comments
 (0)