summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/StepContainer.tsx
diff options
context:
space:
mode:
authorsestinj <sestinj@gmail.com>2023-07-15 15:11:47 -0700
committersestinj <sestinj@gmail.com>2023-07-15 15:11:47 -0700
commitfd6e0c592037d94453dfea6cd6aa73f7d0cb80b2 (patch)
tree0475858b665f314fa648f96ec9468b716a2a2f86 /extension/react-app/src/components/StepContainer.tsx
parent15aed0fa0392cf1c33c68fca7413593525e3fc65 (diff)
parent46883738a287a5eb1cfae71ab1f6127450f7554f (diff)
downloadsncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.tar.gz
sncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.tar.bz2
sncontinue-fd6e0c592037d94453dfea6cd6aa73f7d0cb80b2.zip
Merge branch 'main' of github.com:continuedev/continue into main
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r--extension/react-app/src/components/StepContainer.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 7f23e333..93bdbc89 100644
--- a/extension/react-app/src/components/StepContainer.tsx
+++ b/extension/react-app/src/components/StepContainer.tsx
@@ -17,6 +17,7 @@ import { StopCircle } from "@styled-icons/heroicons-solid";
import { HistoryNode } from "../../../schema/HistoryNode";
import HeaderButtonWithText from "./HeaderButtonWithText";
import MarkdownPreview from "@uiw/react-markdown-preview";
+import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../util";
interface StepContainerProps {
historyNode: HistoryNode;
@@ -217,7 +218,11 @@ function StepContainer(props: StepContainerProps) {
e.stopPropagation();
props.onDelete();
}}
- text={props.historyNode.active ? "Stop (⌘⌫)" : "Delete"}
+ text={
+ props.historyNode.active
+ ? `Stop (${getMetaKeyLabel()}⌫)`
+ : "Delete"
+ }
>
{props.historyNode.active ? (
<StopCircle size="1.6em" onClick={props.onDelete} />