Skip to content

Commit e31578d

Browse files
authored
chore(site): replace stop icon with pause icon (#21173)
1 parent 4844c97 commit e31578d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

site/src/components/BuildIcon/BuildIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { WorkspaceTransition } from "api/typesGenerated";
2-
import { PlayIcon, SquareIcon, TrashIcon } from "lucide-react";
2+
import { PauseIcon, PlayIcon, TrashIcon } from "lucide-react";
33
import type { ComponentProps } from "react";
44

55
type SVGIcon = typeof PlayIcon;
@@ -8,7 +8,7 @@ type SVGIconProps = ComponentProps<SVGIcon>;
88

99
const iconByTransition: Record<WorkspaceTransition, SVGIcon> = {
1010
start: PlayIcon,
11-
stop: SquareIcon,
11+
stop: PauseIcon,
1212
delete: TrashIcon,
1313
};
1414

site/src/pages/WorkspacePage/WorkspaceActions/Buttons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
} from "components/Tooltip/Tooltip";
88
import {
99
BanIcon,
10-
CircleStopIcon,
1110
CloudIcon,
11+
PauseIcon,
1212
PlayIcon,
1313
PowerIcon,
1414
RotateCcwIcon,
@@ -130,7 +130,7 @@ export const StopButton: FC<ActionButtonProps> = ({
130130
onClick={() => handleAction()}
131131
data-testid="workspace-stop-button"
132132
>
133-
<CircleStopIcon />
133+
<PauseIcon />
134134
{loading ? <>Stopping&hellip;</> : "Stop"}
135135
</TopbarButton>
136136
);

site/src/pages/WorkspacesPage/WorkspacesPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { TableToolbar } from "components/TableToolbar/TableToolbar";
2020
import {
2121
ChevronDownIcon,
2222
CloudIcon,
23+
PauseIcon,
2324
PlayIcon,
24-
SquareIcon,
2525
TrashIcon,
2626
} from "lucide-react";
2727
import { WorkspacesTable } from "pages/WorkspacesPage/WorkspacesTable";
@@ -175,7 +175,7 @@ export const WorkspacesPageView: FC<WorkspacesPageViewProps> = ({
175175
}
176176
onClick={onBatchStopTransition}
177177
>
178-
<SquareIcon /> Stop
178+
<PauseIcon /> Stop
179179
</DropdownMenuItem>
180180
<DropdownMenuSeparator />
181181
<DropdownMenuItem onClick={onBatchUpdateTransition}>

site/src/pages/WorkspacesPage/WorkspacesTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ import {
5151
EllipsisVertical,
5252
ExternalLinkIcon,
5353
FileIcon,
54+
PauseIcon,
5455
PlayIcon,
5556
RefreshCcwIcon,
56-
SquareIcon,
5757
SquareTerminalIcon,
5858
StarIcon,
5959
} from "lucide-react";
@@ -481,7 +481,7 @@ const WorkspaceActionsCell: FC<WorkspaceActionsCellProps> = ({
481481
isLoading={stopWorkspaceMutation.isPending}
482482
label="Stop workspace"
483483
>
484-
<SquareIcon />
484+
<PauseIcon />
485485
</PrimaryAction>
486486
)}
487487

site/src/utils/workspace.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import utc from "dayjs/plugin/utc";
88
import {
99
CircleAlertIcon,
1010
HourglassIcon,
11+
PauseIcon,
1112
PlayIcon,
12-
SquareIcon,
1313
} from "lucide-react";
1414
import semver from "semver";
1515
import { getPendingStatusLabel } from "./provisionerJob";
@@ -241,7 +241,7 @@ export const getDisplayWorkspaceStatus = (
241241
return {
242242
type: "inactive",
243243
text: "Stopped",
244-
icon: <SquareIcon />,
244+
icon: <PauseIcon />,
245245
} as const;
246246
case "deleting":
247247
return {

0 commit comments

Comments
 (0)