Skip to content

Commit b23e3f9

Browse files
authored
fix: change resource icon colors in the delete modal based on the set theme (#16550)
1 parent db76728 commit b23e3f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site/src/pages/WorkspacesPage/BatchDeleteConfirmation.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import ScheduleIcon from "@mui/icons-material/Schedule";
44
import { visuallyHidden } from "@mui/utils";
55
import type { Workspace } from "api/typesGenerated";
66
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
7+
import { ExternalImage } from "components/ExternalImage/ExternalImage";
78
import { Stack } from "components/Stack/Stack";
89
import dayjs from "dayjs";
910
import relativeTime from "dayjs/plugin/relativeTime";
@@ -247,7 +248,11 @@ const Resources: FC<StageProps> = ({ workspaces }) => {
247248
>
248249
{Object.entries(resources).map(([type, summary]) => (
249250
<Stack key={type} direction="row" alignItems="center" spacing={1}>
250-
<img alt="" src={summary.icon} css={styles.summaryIcon} />
251+
<ExternalImage
252+
src={summary.icon}
253+
width={styles.summaryIcon.width}
254+
height={styles.summaryIcon.height}
255+
/>
251256
<span>
252257
{summary.count} <code>{type}</code>
253258
</span>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy