mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: change resource icon colors in the delete modal based on the set theme (#16550)
This commit is contained in:
@@ -4,6 +4,7 @@ import ScheduleIcon from "@mui/icons-material/Schedule";
|
||||
import { visuallyHidden } from "@mui/utils";
|
||||
import type { Workspace } from "api/typesGenerated";
|
||||
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
|
||||
import { ExternalImage } from "components/ExternalImage/ExternalImage";
|
||||
import { Stack } from "components/Stack/Stack";
|
||||
import dayjs from "dayjs";
|
||||
import relativeTime from "dayjs/plugin/relativeTime";
|
||||
@@ -247,7 +248,11 @@ const Resources: FC<StageProps> = ({ workspaces }) => {
|
||||
>
|
||||
{Object.entries(resources).map(([type, summary]) => (
|
||||
<Stack key={type} direction="row" alignItems="center" spacing={1}>
|
||||
<img alt="" src={summary.icon} css={styles.summaryIcon} />
|
||||
<ExternalImage
|
||||
src={summary.icon}
|
||||
width={styles.summaryIcon.width}
|
||||
height={styles.summaryIcon.height}
|
||||
/>
|
||||
<span>
|
||||
{summary.count} <code>{type}</code>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user