diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-01 12:36:57 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-01 12:36:57 -0700 |
commit | 36577b8e94809da47a540499132774a0fe2c085d (patch) | |
tree | e912172745fedf947b0f393ceaa2d36aaa703626 /extension/react-app/src/components/StepContainer.tsx | |
parent | 95ce61f2655dcbeb4fed019b6a9d8a632bad7adc (diff) | |
download | sncontinue-36577b8e94809da47a540499132774a0fe2c085d.tar.gz sncontinue-36577b8e94809da47a540499132774a0fe2c085d.tar.bz2 sncontinue-36577b8e94809da47a540499132774a0fe2c085d.zip |
explicit context pill buttons
Diffstat (limited to 'extension/react-app/src/components/StepContainer.tsx')
-rw-r--r-- | extension/react-app/src/components/StepContainer.tsx | 8 |
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} />; }, }} > |