Skip to content

Commit a8ff0f7

Browse files
committed
put stop first and drop the stop glyph
1 parent 035e9f5 commit a8ff0f7

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

packages/ui/src/features/loops/components/LoopRunRow.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
type Icon,
77
Lightning,
88
Play,
9-
Stop,
109
Timer,
1110
Warning,
1211
X,
@@ -188,7 +187,6 @@ export function LoopRunRow({
188187
size="1"
189188
onClick={() => setStopOpen(true)}
190189
>
191-
<Stop size={12} weight="bold" />
192190
Stop run
193191
</Button>
194192
) : null}

packages/ui/src/features/loops/components/LoopsListView.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
CloudIcon,
44
PlusIcon,
55
RepeatIcon,
6-
StopIcon,
76
} from "@phosphor-icons/react";
87
import type { LoopSchemas } from "@posthog/api-client/loops";
98
import type { UserBasic } from "@posthog/shared/domain-types";
@@ -278,19 +277,18 @@ function BuilderSessionRow({
278277
</Flex>
279278
<Button
280279
variant="soft"
280+
color="red"
281281
size="1"
282-
onClick={() => onResume?.(session.taskId)}
282+
onClick={() => setConfirmStop(true)}
283283
>
284-
Resume
284+
Stop
285285
</Button>
286286
<Button
287287
variant="soft"
288-
color="red"
289288
size="1"
290-
onClick={() => setConfirmStop(true)}
289+
onClick={() => onResume?.(session.taskId)}
291290
>
292-
<StopIcon size={12} weight="bold" />
293-
Stop
291+
Resume
294292
</Button>
295293
{confirmStop ? (
296294
<StopCloudRunDialog

0 commit comments

Comments
 (0)