@visns-studio/visns-components 4.10.0 → 4.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"name": "@visns-studio/visns-components",
|
|
78
|
-
"version": "4.10.
|
|
78
|
+
"version": "4.10.1",
|
|
79
79
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
80
80
|
"main": "src/index.js",
|
|
81
81
|
"files": [
|
|
@@ -317,6 +317,12 @@ function GenericDetail({
|
|
|
317
317
|
|
|
318
318
|
const renderLatestNotes = () => formatNoteValue();
|
|
319
319
|
|
|
320
|
+
const renderLink = () => (
|
|
321
|
+
<Link to={item.href.url + data[item.href.key]}>
|
|
322
|
+
{truncatedValue}
|
|
323
|
+
</Link>
|
|
324
|
+
);
|
|
325
|
+
|
|
320
326
|
const renderOptions = () => (options ? options[value] : '');
|
|
321
327
|
|
|
322
328
|
const renderRichText = () => {
|
|
@@ -400,6 +406,8 @@ function GenericDetail({
|
|
|
400
406
|
return renderJson();
|
|
401
407
|
case 'latest_notes':
|
|
402
408
|
return renderLatestNotes();
|
|
409
|
+
case 'link':
|
|
410
|
+
return renderLink();
|
|
403
411
|
case 'options':
|
|
404
412
|
return renderOptions();
|
|
405
413
|
case 'password':
|