educoreapp2 1.0.37 → 1.0.38

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.
@@ -20,6 +20,7 @@ class BaseForm extends _react.Component {
20
20
  this.handle2();
21
21
  });
22
22
  this.props = props;
23
+ this.extraButt = props.extraButt;
23
24
  this.className = !_educoreapp.Tools.empty(props.className) ? props.className : "row";
24
25
  this.module = props.module;
25
26
  this.act = props.act;
@@ -97,6 +98,10 @@ class BaseForm extends _react.Component {
97
98
  render() {
98
99
  let error = null;
99
100
  let lab1 = this.props.lab1;
101
+ let extraButt = !_educoreapp.Tools.empty(this.extraButt) ? this.extraButt : /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
102
+ color: "primary",
103
+ type: "submit"
104
+ }, lab1);
100
105
  if (_educoreapp.Tools.empty(lab1)) {
101
106
  lab1 = "Login";
102
107
  }
@@ -105,10 +110,7 @@ class BaseForm extends _react.Component {
105
110
  onSubmit: this.handleSubmit
106
111
  }, error && /*#__PURE__*/_react.default.createElement(_reactstrap.Alert, {
107
112
  color: "danger"
108
- }, error), this.props.children, /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
109
- color: "primary",
110
- type: "submit"
111
- }, lab1));
113
+ }, error), this.props.children, extraButt);
112
114
  }
113
115
  }
114
116
  var _default = exports.default = BaseForm;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "educoreapp2",
3
3
  "private": false,
4
- "version": "1.0.37",
4
+ "version": "1.0.38",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "files": [