@visns-studio/visns-components 2.3.5 → 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.
|
@@ -111,16 +111,23 @@ function GenericDetail({ setting, urlParam, userProfile }) {
|
|
|
111
111
|
case 'latest_notes':
|
|
112
112
|
return formatNoteValue();
|
|
113
113
|
case 'richtext':
|
|
114
|
-
if (value) {
|
|
115
|
-
|
|
116
|
-
return (
|
|
117
|
-
<>
|
|
118
|
-
{lines.map((line, index) => (
|
|
119
|
-
<p key={index}>{line}</p>
|
|
120
|
-
))}
|
|
121
|
-
</>
|
|
122
|
-
);
|
|
114
|
+
if (!value) {
|
|
115
|
+
return null;
|
|
123
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
|
+
);
|
|
124
131
|
case 'total':
|
|
125
132
|
return formatTotalValue();
|
|
126
133
|
default:
|
|
@@ -358,11 +365,9 @@ function GenericDetail({ setting, urlParam, userProfile }) {
|
|
|
358
365
|
}
|
|
359
366
|
>
|
|
360
367
|
<strong>
|
|
361
|
-
{
|
|
362
|
-
item.label
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
:
|
|
368
|
+
{item.label
|
|
369
|
+
? `${item.label}:`
|
|
370
|
+
: null}
|
|
366
371
|
</strong>{' '}
|
|
367
372
|
{renderValue(
|
|
368
373
|
item,
|
package/package.json
CHANGED