summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/StepContainer.tsx
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-04 22:23:04 -0700
committerTy Dunn <ty@tydunn.com>2023-07-04 22:23:04 -0700
commit0adac52b7733b32540b91e254244a08467c8650f (patch)
tree3e6a37795a9130fec1138d76f0daef776010290d /extension/react-app/src/components/StepContainer.tsx
parent9dd364dc7f5a5a8513ee4805dfeb303076dc1274 (diff)
downloadsncontinue-0adac52b7733b32540b91e254244a08467c8650f.tar.gz
sncontinue-0adac52b7733b32540b91e254244a08467c8650f.tar.bz2
sncontinue-0adac52b7733b32540b91e254244a08467c8650f.zip
stop inside of circle
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r--extension/react-app/src/components/StepContainer.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 311f68cf..183ffeef 100644
--- a/extension/react-app/src/components/StepContainer.tsx
+++ b/extension/react-app/src/components/StepContainer.tsx
@@ -10,8 +10,8 @@ import {
import {
ChevronDown,
ChevronRight,
- XMark,
ArrowPath,
+ XMark
} from "@styled-icons/heroicons-outline";
import {
Stop,
@@ -210,9 +210,10 @@ function StepContainer(props: StepContainerProps) {
e.stopPropagation();
props.onDelete();
}}
- text="Delete"
+ text={props.historyNode.active ? "Stop" : "Delete"}
+ active={props.historyNode.active}
>
- <Stop size="1.6em" onClick={props.onDelete} />
+ {props.historyNode.active ? <Stop size="1.6em" onClick={props.onDelete} /> :<XMark size="1.6em" onClick={props.onDelete} />}
</HeaderButtonWithText>
{props.historyNode.observation?.error ? (
<HeaderButtonWithText