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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.602",
3
+ "version": "0.0.603",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -53,7 +53,7 @@ const FieldViewer = (props) => {
53
53
 
54
54
  switch (type) {
55
55
  case TYPES.BOOLEAN:
56
- return <Property label={label} value={value} />
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 = ({ id, value = false }) => {
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