Client: Rich URLs in comments

Closes #51
This commit is contained in:
Donkie
2023-08-12 20:59:37 +02:00
parent 5a8a5b185d
commit ecabc425c3
9 changed files with 81 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ import { Typography } from "antd";
import dayjs from "dayjs";
import utc from "dayjs/plugin/utc";
import { IVendor } from "./model";
import { enrichText } from "../../utils/parsing";
dayjs.extend(utc);
@@ -31,7 +32,7 @@ export const VendorShow: React.FC<IResourceComponentsProps> = () => {
<Title level={5}>{t("vendor.fields.name")}</Title>
<TextField value={record?.name} />
<Title level={5}>{t("vendor.fields.comment")}</Title>
<TextField value={record?.comment} />
<TextField value={enrichText(record?.comment)} />
</Show>
);
};