ywana-core8 0.0.923 → 0.0.925

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.923",
3
+ "version": "0.0.925",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -437,6 +437,8 @@ const CollectionEditor = (props) => {
437
437
 
438
438
  const hasMenu = canDelete
439
439
 
440
+ const saveLabel = <Text>Guardar Cambios</Text>
441
+
440
442
  return selected && form ? (
441
443
  <Fragment>
442
444
  <Header icon={icon} title={renderTitle()}>
@@ -449,7 +451,7 @@ const CollectionEditor = (props) => {
449
451
  </MenuIcon>
450
452
  }
451
453
  <Icon icon="refresh" clickable action={onReload} />
452
- {autosave === true ? null : <Button icon="save" label="Guardar Cambios" raised disabled={!canSave()} action={save} />}
454
+ {autosave === true ? null : <Button icon="save" label={saveLabel} raised disabled={!canSave()} action={save} />}
453
455
  {renderActions()}
454
456
  </Header>
455
457
  {renderEditor()}
@@ -79,8 +79,9 @@ const DynamicFormField = (props) => {
79
79
  }
80
80
  }
81
81
 
82
+ const className = `dynamic-form-field ${id}`
82
83
  return (
83
- <div className="dynamic-form-field">
84
+ <div className={className}>
84
85
  {renderByType()}
85
86
  </div>
86
87
  )
@@ -38,8 +38,6 @@ const DynamicFormTest = (props) => {
38
38
  setValues({ ...values, [id]: value })
39
39
  }
40
40
 
41
- console.log(values)
42
-
43
41
  return (
44
42
  <div style={style}>
45
43
  <DynamicForm schema={schema} values={values} onChange={onChange} />