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
commitd26b434eb1bf3aa084f00fa0eb143e43591713c3 (patch)
treeecc15be2231abe1cdc8ac380760bd359cbab130b /extension/react-app/src/components/StepContainer.tsx
parent26f147d2fdd5412117445c97a937c49b064da082 (diff)
downloadsncontinue-d26b434eb1bf3aa084f00fa0eb143e43591713c3.tar.gz
sncontinue-d26b434eb1bf3aa084f00fa0eb143e43591713c3.tar.bz2
sncontinue-d26b434eb1bf3aa084f00fa0eb143e43591713c3.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