ywana-core8 0.0.602 → 0.0.603
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 +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +26 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +26 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +5 -3
package/package.json
CHANGED
@@ -53,7 +53,7 @@ const FieldViewer = (props) => {
|
|
53
53
|
|
54
54
|
switch (type) {
|
55
55
|
case TYPES.BOOLEAN:
|
56
|
-
return <
|
56
|
+
return <BooleanViewer field={field} value={value} />
|
57
57
|
case TYPES.STRING:
|
58
58
|
return <StringViewer field={field} value={value} />
|
59
59
|
case TYPES.ENTITY:
|
@@ -89,9 +89,11 @@ const EntityViewer = (props) => {
|
|
89
89
|
/**
|
90
90
|
* Boolean Viewer
|
91
91
|
*/
|
92
|
-
const BooleanViewer = (
|
92
|
+
const BooleanViewer = (props) => {
|
93
|
+
const { field, value } = props
|
94
|
+
const { label, options } = field
|
93
95
|
const iconName = value === true ? "check_box" : "check_box_outline_blank"
|
94
|
-
const icon <Icon icon={iconName} />
|
96
|
+
const icon = <Icon icon={iconName} />
|
95
97
|
return <Property label={label} value={icon} options={options} />
|
96
98
|
}
|
97
99
|
|