ywana-core8 0.1.69 → 0.1.71
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +7 -1
package/package.json
CHANGED
@@ -15,6 +15,7 @@ export const ContentViewer = (props) => {
|
|
15
15
|
|
16
16
|
const sections = content.sections()
|
17
17
|
const value = content.value()
|
18
|
+
console.log("ContentViewer", value)
|
18
19
|
return (
|
19
20
|
<div className="content-viewer">
|
20
21
|
{sections.map(section => {
|
@@ -56,7 +57,12 @@ const FieldViewer = (props) => {
|
|
56
57
|
case TYPES.ARRAY:
|
57
58
|
return item === TYPES.STRING ? <ListViewer field={field} value={value} /> : <ArrayViewer label={label} item={item} value={value} />
|
58
59
|
case "Image":
|
59
|
-
|
60
|
+
console.log("Image", field, value)
|
61
|
+
return (
|
62
|
+
<div className={field.id}>
|
63
|
+
<img src={value} />
|
64
|
+
</div>
|
65
|
+
)
|
60
66
|
default:
|
61
67
|
return <div>{label}</div>
|
62
68
|
}
|