ywana-core8 0.0.162 → 0.0.166

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.162",
3
+ "version": "0.0.166",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -105,7 +105,10 @@ export const TablePage = (props) => {
105
105
 
106
106
  function renderActions() {
107
107
  return actions.map(element => {
108
- const action = () => element.props.action(ctx)
108
+
109
+ console.log("renderActions", element.props, pageContext)
110
+
111
+ const action = () => element.props.action(pageContext)
109
112
  const clone = React.cloneElement(element, [ action ])
110
113
  return clone
111
114
  })
@@ -120,7 +123,6 @@ export const TablePage = (props) => {
120
123
  <MenuItem label="Cargar Escenario 1" onSelect={playScenario} />
121
124
  </MenuIcon>
122
125
  ) : null}
123
- {actions}
124
126
  {renderActions()}
125
127
  </Header>
126
128
  <menu className="table-page">