summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/StepContainer.tsx
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-07-02 20:15:49 -0700
committerGitHub <noreply@github.com>2023-07-02 20:15:49 -0700
commit9831ac76fbced2f18ec15642eb31d3854af56e67 (patch)
treec2682170eb8f8a81fd494fce7bb8a435dcfa9829 /extension/react-app/src/components/StepContainer.tsx
parentc41314b095648e6b3bcecc84a20354574db8379d (diff)
parent38d0c1ad7955b43c1765ac8faea723028a90201e (diff)
downloadsncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.tar.gz
sncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.tar.bz2
sncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.zip
Merge pull request #170 from continuedev/explicit-context
Explicit context
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r--extension/react-app/src/components/StepContainer.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 02c04548..cb83f20a 100644
--- a/extension/react-app/src/components/StepContainer.tsx
+++ b/extension/react-app/src/components/StepContainer.tsx
@@ -246,10 +246,14 @@ function StepContainer(props: StepContainerProps) {
className="overflow-x-scroll"
components={{
pre: ({ node, ...props }) => {
- return <CodeBlock children={props.children[0]} />;
+ return (
+ <CodeBlock
+ children={(props.children[0] as any).props.children[0]}
+ />
+ );
},
code: ({ node, ...props }) => {
- return <StyledCode children={props.children[0]} />;
+ return <StyledCode children={props.children[0] as any} />;
},
}}
>