UNPKG

abb-core

Version:

Application Build Butler Core

23 lines (22 loc) 719 B
import * as tslib_1 from "tslib"; import * as React from 'react'; var ABBUser = /** @class */ (function (_super) { tslib_1.__extends(ABBUser, _super); function ABBUser(props) { var _this = _super.call(this, props) || this; _this.state = { avatarPath: props.avatarPath, firstname: props.firstname, lastname: props.lastname, username: props.username }; return _this; } ABBUser.prototype.changePassword = function (oldPassword, newPassword, newPasswordSecond) { fetch(this.props.backendURL, { method: this.props.getDataMethod }); }; return ABBUser; }(React.Component)); export { ABBUser };