Skip to content

Commit

Permalink
Add markdown rendering support to WF and PS log components
Browse files Browse the repository at this point in the history
  • Loading branch information
tahierhussain committed Nov 22, 2024
1 parent c685aba commit c016753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/components/agency/display-logs/DisplayLogs.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useRef } from "react";
import { Col, Row, Typography } from "antd";
import ReactMarkdown from "markdown-to-jsx";

import "./DisplayLogs.css";
import { useSocketLogsStore } from "../../../store/socket-logs-store";
Expand Down Expand Up @@ -38,7 +39,7 @@ function DisplayLogs() {
</Col>
<Col span={8}>
<Typography className="display-logs-col">
{log?.message}
<ReactMarkdown>{log?.message}</ReactMarkdown>
</Typography>
</Col>
<Col span={2}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useRef } from "react";
import { Col, Row, Typography } from "antd";
import ReactMarkdown from "markdown-to-jsx";

import "../../agency/display-logs/DisplayLogs.css";
import { useSocketCustomToolStore } from "../../../store/socket-custom-tool";
Expand Down Expand Up @@ -49,7 +50,7 @@ function DisplayLogs() {
</Col>
<Col span={8}>
<Typography className="display-logs-col">
{message?.message}
<ReactMarkdown>{message?.message}</ReactMarkdown>
</Typography>
</Col>
</Row>
Expand Down

0 comments on commit c016753

Please sign in to comment.