Skip to content

Commit

Permalink
Adapted PendingAnswerComponent and CodeBlock to look the same, define…
Browse files Browse the repository at this point in the history
…d python as fixed hilighting language
  • Loading branch information
Bianca Wentzel committed Dec 11, 2024
1 parent c409b1e commit 0327f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/js/Containers/FrevaGPT/components/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function CodeBlock(props) {
<Accordion.Item eventKey="0">
<Accordion.Header>python</Accordion.Header>
<Accordion.Body>
<Highlight>{formatCode(props.title, props.code[0])}</Highlight>
<Highlight className="python">{formatCode(props.title, props.code[0])}</Highlight>
</Accordion.Body>
</Accordion.Item>
</Accordion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ function PendingAnswerComponent(props) {
case "Code":
case "CodeBlock":
return (
<>
<Col md={{span: 10, offset: 0}}>
<div className="mb-3">
<Accordion defaultActiveKey="0">
<Accordion.Item eventKey="0">
<Accordion.Header>{props.variant}</Accordion.Header>
<Accordion.Header>python</Accordion.Header>
<Accordion.Body>
<Highlight>{renderedCode}</Highlight>
<Highlight className="python">{renderedCode}</Highlight>
<span>
<Spinner size="sm" />
<span className="m-2">Analyzing...</span>
Expand All @@ -60,7 +60,7 @@ function PendingAnswerComponent(props) {
</Accordion.Item>
</Accordion>
</div>
</>
</Col>
);
case "ServerHint":
return (
Expand Down

0 comments on commit 0327f7e

Please sign in to comment.