mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): replace stop icon with pause icon (#21173)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { WorkspaceTransition } from "api/typesGenerated";
|
||||
import { PlayIcon, SquareIcon, TrashIcon } from "lucide-react";
|
||||
import { PauseIcon, PlayIcon, TrashIcon } from "lucide-react";
|
||||
import type { ComponentProps } from "react";
|
||||
|
||||
type SVGIcon = typeof PlayIcon;
|
||||
@@ -8,7 +8,7 @@ type SVGIconProps = ComponentProps<SVGIcon>;
|
||||
|
||||
const iconByTransition: Record<WorkspaceTransition, SVGIcon> = {
|
||||
start: PlayIcon,
|
||||
stop: SquareIcon,
|
||||
stop: PauseIcon,
|
||||
delete: TrashIcon,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
} from "components/Tooltip/Tooltip";
|
||||
import {
|
||||
BanIcon,
|
||||
CircleStopIcon,
|
||||
CloudIcon,
|
||||
PauseIcon,
|
||||
PlayIcon,
|
||||
PowerIcon,
|
||||
RotateCcwIcon,
|
||||
@@ -130,7 +130,7 @@ export const StopButton: FC<ActionButtonProps> = ({
|
||||
onClick={() => handleAction()}
|
||||
data-testid="workspace-stop-button"
|
||||
>
|
||||
<CircleStopIcon />
|
||||
<PauseIcon />
|
||||
{loading ? <>Stopping…</> : "Stop"}
|
||||
</TopbarButton>
|
||||
);
|
||||
|
||||
@@ -20,8 +20,8 @@ import { TableToolbar } from "components/TableToolbar/TableToolbar";
|
||||
import {
|
||||
ChevronDownIcon,
|
||||
CloudIcon,
|
||||
PauseIcon,
|
||||
PlayIcon,
|
||||
SquareIcon,
|
||||
TrashIcon,
|
||||
} from "lucide-react";
|
||||
import { WorkspacesTable } from "pages/WorkspacesPage/WorkspacesTable";
|
||||
@@ -175,7 +175,7 @@ export const WorkspacesPageView: FC<WorkspacesPageViewProps> = ({
|
||||
}
|
||||
onClick={onBatchStopTransition}
|
||||
>
|
||||
<SquareIcon /> Stop
|
||||
<PauseIcon /> Stop
|
||||
</DropdownMenuItem>
|
||||
<DropdownMenuSeparator />
|
||||
<DropdownMenuItem onClick={onBatchUpdateTransition}>
|
||||
|
||||
@@ -51,9 +51,9 @@ import {
|
||||
EllipsisVertical,
|
||||
ExternalLinkIcon,
|
||||
FileIcon,
|
||||
PauseIcon,
|
||||
PlayIcon,
|
||||
RefreshCcwIcon,
|
||||
SquareIcon,
|
||||
SquareTerminalIcon,
|
||||
StarIcon,
|
||||
} from "lucide-react";
|
||||
@@ -481,7 +481,7 @@ const WorkspaceActionsCell: FC<WorkspaceActionsCellProps> = ({
|
||||
isLoading={stopWorkspaceMutation.isPending}
|
||||
label="Stop workspace"
|
||||
>
|
||||
<SquareIcon />
|
||||
<PauseIcon />
|
||||
</PrimaryAction>
|
||||
)}
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ import utc from "dayjs/plugin/utc";
|
||||
import {
|
||||
CircleAlertIcon,
|
||||
HourglassIcon,
|
||||
PauseIcon,
|
||||
PlayIcon,
|
||||
SquareIcon,
|
||||
} from "lucide-react";
|
||||
import semver from "semver";
|
||||
import { getPendingStatusLabel } from "./provisionerJob";
|
||||
@@ -241,7 +241,7 @@ export const getDisplayWorkspaceStatus = (
|
||||
return {
|
||||
type: "inactive",
|
||||
text: "Stopped",
|
||||
icon: <SquareIcon />,
|
||||
icon: <PauseIcon />,
|
||||
} as const;
|
||||
case "deleting":
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user