summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/StepContainer.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-01 18:15:26 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-01 18:15:26 -0700
commit6a3967838e1d1541404a17f9d684d7efceb28031 (patch)
tree910578c7b3ddd3fb4347bda46412e7b0dbcddda3 /extension/react-app/src/components/StepContainer.tsx
parent9d1be8859cba212d205b6290e00727b85c53fe09 (diff)
downloadsncontinue-6a3967838e1d1541404a17f9d684d7efceb28031.tar.gz
sncontinue-6a3967838e1d1541404a17f9d684d7efceb28031.tar.bz2
sncontinue-6a3967838e1d1541404a17f9d684d7efceb28031.zip
use hero-icons, instead of styled-icons/heroicons
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r--extension/react-app/src/components/StepContainer.tsx29
1 files changed, 16 insertions, 13 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 2cfe7ecd..4726b609 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";
@@ -170,9 +170,9 @@ function StepContainer(props: StepContainerProps) {
<div className="m-2">
{!isUserInput &&
(props.open ? (
- <ChevronDown size="1.4em" />
+ <ChevronDownIcon className="h-6 w-6" />
) : (
- <ChevronRight size="1.4em" />
+ <ChevronRightIcon className="h-6 w-6" />
))}
{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 className="h-6 w-6" />
</HeaderButtonWithText>
)}
<HeaderButtonWithText
@@ -210,9 +210,12 @@ function StepContainer(props: StepContainerProps) {
}
>
{props.historyNode.active ? (
- <StopCircle size="1.6em" onClick={props.onDelete} />
+ <StopCircleIcon
+ className="h-6 w-6"
+ onClick={props.onDelete}
+ />
) : (
- <XMark size="1.6em" onClick={props.onDelete} />
+ <XMarkIcon className="h-6 w-6" onClick={props.onDelete} />
)}
</HeaderButtonWithText>
{props.historyNode.observation?.error ? (
@@ -223,7 +226,7 @@ function StepContainer(props: StepContainerProps) {
props.onRetry();
}}
>
- <ArrowPath size="1.6em" onClick={props.onRetry} />
+ <ArrowPathIcon className="h-6 w-6" onClick={props.onRetry} />
</HeaderButtonWithText>
) : (
<></>