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 | 359c277f25c323d3fd47830d569fb05f93920d3a (patch) | |
tree | 352117ef4babc4378dfdbc452a67a7bad52cf07a /extension/react-app/src/components/StepContainer.tsx | |
parent | 59d153a66ce59a28f4eb490d5dcf418ddf2503ec (diff) | |
download | sncontinue-359c277f25c323d3fd47830d569fb05f93920d3a.tar.gz sncontinue-359c277f25c323d3fd47830d569fb05f93920d3a.tar.bz2 sncontinue-359c277f25c323d3fd47830d569fb05f93920d3a.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} />; }, }} > |