Skip to content

Commit

Permalink
refactor(component): Related Ticket field to use FiledData Component …
Browse files Browse the repository at this point in the history
…to render markdown

ref: #40 #42 nofusscomputing/centurion_erp#466
  • Loading branch information
jon-nfc committed Jan 8, 2025
1 parent b783436 commit 425b22e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/page/ticket/RelatedTickets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
import { apiFetch } from "../../../hooks/apiFetch";
import IconLoader from "../../IconLoader";
import RenderMarkdown from "../../../functions/RenderMarkdown";
import FieldData from "../../../functions/FieldData";

const RelatedTickets = ({
data_url = null,
Expand Down Expand Up @@ -79,9 +80,11 @@ const RelatedTickets = ({
<span style={{
display: 'inline-block'
}}>
<RenderMarkdown>
{'#'+this_id['id']}
</RenderMarkdown>
<FieldData
metadata={metadata}
field_name='display_name'
data={related_ticket}
/>
</span>
</div>
</div>
Expand Down

0 comments on commit 425b22e

Please sign in to comment.