@visns-studio/visns-components 2.3.4 → 2.3.6
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.
|
@@ -110,6 +110,24 @@ function GenericDetail({ setting, urlParam, userProfile }) {
|
|
|
110
110
|
return value ? 'Yes' : 'No';
|
|
111
111
|
case 'latest_notes':
|
|
112
112
|
return formatNoteValue();
|
|
113
|
+
case 'richtext':
|
|
114
|
+
if (!value) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const lines = value.split('\n');
|
|
119
|
+
|
|
120
|
+
if (lines.length === 0) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return (
|
|
125
|
+
<>
|
|
126
|
+
{lines.map((line, index) => (
|
|
127
|
+
<p key={index}>{line}</p>
|
|
128
|
+
))}
|
|
129
|
+
</>
|
|
130
|
+
);
|
|
113
131
|
case 'total':
|
|
114
132
|
return formatTotalValue();
|
|
115
133
|
default:
|
|
@@ -347,11 +365,9 @@ function GenericDetail({ setting, urlParam, userProfile }) {
|
|
|
347
365
|
}
|
|
348
366
|
>
|
|
349
367
|
<strong>
|
|
350
|
-
{
|
|
351
|
-
item.label
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
:
|
|
368
|
+
{item.label
|
|
369
|
+
? `${item.label}:`
|
|
370
|
+
: null}
|
|
355
371
|
</strong>{' '}
|
|
356
372
|
{renderValue(
|
|
357
373
|
item,
|
package/package.json
CHANGED