@visns-studio/visns-components 2.3.4 → 2.3.5
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,17 @@ 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
|
+
const lines = value.split('\n');
|
|
116
|
+
return (
|
|
117
|
+
<>
|
|
118
|
+
{lines.map((line, index) => (
|
|
119
|
+
<p key={index}>{line}</p>
|
|
120
|
+
))}
|
|
121
|
+
</>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
113
124
|
case 'total':
|
|
114
125
|
return formatTotalValue();
|
|
115
126
|
default:
|
package/package.json
CHANGED