ywana-core8 0.0.225 → 0.0.226

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.225",
3
+ "version": "0.0.226",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -40,12 +40,20 @@ export const CollectionPage = (props) => {
40
40
  site.openDialog(<CreateContentDialog label={`${name}`} type={schema} onOK={onOK} />);
41
41
  }
42
42
 
43
+ function renderActions() {
44
+ return actions.map(element => {
45
+ const action = () => element.props.action(pageContext)
46
+ const clone = React.cloneElement(element, { action })
47
+ return clone
48
+ })
49
+ }
50
+
43
51
  return (
44
52
  <Fragment>
45
53
  <Header className="collection-page" title={<Text>{title}</Text>}>
46
54
  <Button icon="add" label="Add" action={add} />
47
55
  <Button icon="refresh" label="Reload" action={reload} />
48
- {actions}
56
+ {renderActions()}
49
57
  </Header>
50
58
  <menu className="collection-page">
51
59
  <Header title={<Text>Lista de {name}</Text>} >
@@ -17,7 +17,7 @@ main.table-page>header {
17
17
  }
18
18
 
19
19
  aside.table-page {
20
- width: 25rem;
20
+ min-width: 25rem;
21
21
  }
22
22
 
23
23
  main.table-editor {