mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
New summary (#283)
* handover final summary to Zephyr deployment * fix display error * push new summary feature * fix failing test case * Added markdown support for final summary * update UI render issue * retain sentence tokenizer call --------- Co-authored-by: Koper <andreas@monadical.com>
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { useRef, useState } from "react";
|
||||
import React from "react";
|
||||
import ReactDom from "react-dom";
|
||||
import Markdown from "react-markdown";
|
||||
import "../styles/markdown.css";
|
||||
|
||||
type FinalSummaryProps = {
|
||||
summary: string;
|
||||
@@ -62,7 +66,9 @@ export default function FinalSummary(props: FinalSummaryProps) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p ref={finalSummaryRef}>{props.summary}</p>
|
||||
<p ref={finalSummaryRef} className="markdown">
|
||||
<Markdown>{props.summary}</Markdown>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user