summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/StepContainer.tsx
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-08-03 01:16:34 -0700
committerGitHub <noreply@github.com>2023-08-03 01:16:34 -0700
commit9c3f3e1aadddc0f77736a0078a204f7ab082be8d (patch)
tree19941667006e92ee3204c9d76f13521bd27621f2 /extension/react-app/src/components/StepContainer.tsx
parent9c07a0ee6cc4eb12518ecab894b197562837e737 (diff)
parent01ea5e221db410c1ac1e138caa80a6385458fe9b (diff)
downloadsncontinue-9c3f3e1aadddc0f77736a0078a204f7ab082be8d.tar.gz
sncontinue-9c3f3e1aadddc0f77736a0078a204f7ab082be8d.tar.bz2
sncontinue-9c3f3e1aadddc0f77736a0078a204f7ab082be8d.zip
Merge pull request #337 from continuedev/package-python
Package python
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r--extension/react-app/src/components/StepContainer.tsx40
1 files changed, 26 insertions, 14 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 2cfe7ecd..19cdd2e1 100644
--- a/extension/react-app/src/components/StepContainer.tsx
+++ b/extension/react-app/src/components/StepContainer.tsx
@@ -9,13 +9,13 @@ import {
vscForeground,
} from ".";
import {
- ChevronDown,
- ChevronRight,
- ArrowPath,
- XMark,
- MagnifyingGlass,
-} from "@styled-icons/heroicons-outline";
-import { StopCircle } from "@styled-icons/heroicons-solid";
+ ChevronDownIcon,
+ ChevronRightIcon,
+ ArrowPathIcon,
+ XMarkIcon,
+ MagnifyingGlassIcon,
+ StopCircleIcon,
+} from "@heroicons/react/24/outline";
import { HistoryNode } from "../../../schema/HistoryNode";
import HeaderButtonWithText from "./HeaderButtonWithText";
import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../util";
@@ -167,12 +167,12 @@ function StepContainer(props: StepContainerProps) {
loading={(props.historyNode.active as boolean) || false}
error={props.historyNode.observation?.error ? true : false}
>
- <div className="m-2">
+ <div className="m-2 flex items-center">
{!isUserInput &&
(props.open ? (
- <ChevronDown size="1.4em" />
+ <ChevronDownIcon width="1.5em" height="1.5em" />
) : (
- <ChevronRight size="1.4em" />
+ <ChevronRightIcon width="1.5em" height="1.5em" />
))}
{props.historyNode.observation?.title ||
(props.historyNode.step.name as any)}
@@ -195,7 +195,7 @@ function StepContainer(props: StepContainerProps) {
client?.showLogsAtIndex(props.index);
}}
>
- <MagnifyingGlass size="1.4em" />
+ <MagnifyingGlassIcon width="1.5em" height="1.5em" />
</HeaderButtonWithText>
)}
<HeaderButtonWithText
@@ -210,9 +210,17 @@ function StepContainer(props: StepContainerProps) {
}
>
{props.historyNode.active ? (
- <StopCircle size="1.6em" onClick={props.onDelete} />
+ <StopCircleIcon
+ width="1.5em"
+ height="1.5em"
+ onClick={props.onDelete}
+ />
) : (
- <XMark size="1.6em" onClick={props.onDelete} />
+ <XMarkIcon
+ width="1.5em"
+ height="1.5em"
+ onClick={props.onDelete}
+ />
)}
</HeaderButtonWithText>
{props.historyNode.observation?.error ? (
@@ -223,7 +231,11 @@ function StepContainer(props: StepContainerProps) {
props.onRetry();
}}
>
- <ArrowPath size="1.6em" onClick={props.onRetry} />
+ <ArrowPathIcon
+ width="1.5em"
+ height="1.5em"
+ onClick={props.onRetry}
+ />
</HeaderButtonWithText>
) : (
<></>