tg-core-components 6.0.7-bonus-fix-cashier.1 → 6.0.7-sign-up-activation-fix.0

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.
@@ -54,7 +54,7 @@ var ActivationCode = function ActivationCode(_ref) {
54
54
  }, [autoFocus, code]);
55
55
 
56
56
  useEffect(function () {
57
- return inputRef.current.value = code;
57
+ inputRef.current.value = code;
58
58
  }, [code]);
59
59
 
60
60
  var setCaretPosition = function setCaretPosition(from, to) {
@@ -139,16 +139,6 @@ var DepositWidget = function (_Component) {
139
139
  }
140
140
 
141
141
  _createClass(DepositWidget, [{
142
- key: 'componentDidUpdate',
143
- value: function componentDidUpdate(prevProps) {
144
- // Update state when the bonus code updates in props
145
- if (this.props.bonusCode !== prevProps.bonusCode) {
146
- this.setState({
147
- bonusCode: this.props.bonusCode
148
- });
149
- }
150
- }
151
- }, {
152
142
  key: 'render',
153
143
  value: function render() {
154
144
  var _this2 = this;
@@ -93,7 +93,7 @@ var ActivationCode = function ActivationCode(_ref) {
93
93
  }, [autoFocus, code]);
94
94
 
95
95
  (0, _react.useEffect)(function () {
96
- return inputRef.current.value = code;
96
+ inputRef.current.value = code;
97
97
  }, [code]);
98
98
 
99
99
  var setCaretPosition = function setCaretPosition(from, to) {
@@ -204,16 +204,6 @@ var DepositWidget = function (_Component) {
204
204
  }
205
205
 
206
206
  _createClass(DepositWidget, [{
207
- key: 'componentDidUpdate',
208
- value: function componentDidUpdate(prevProps) {
209
- // Update state when the bonus code updates in props
210
- if (this.props.bonusCode !== prevProps.bonusCode) {
211
- this.setState({
212
- bonusCode: this.props.bonusCode
213
- });
214
- }
215
- }
216
- }, {
217
207
  key: 'render',
218
208
  value: function render() {
219
209
  var _this2 = this;
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.0.7-bonus-fix-cashier.1",
3
+ "version": "6.0.7-sign-up-activation-fix.0",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
- "hello": "asdf",
7
6
  "module": "es/index.js",
8
7
  "jsnext:main": "es/index.js",
9
8
  "scripts": {
@@ -77,5 +76,5 @@
77
76
  "webpack": "^3.0.0",
78
77
  "webpack-blocks": "^1.0.0"
79
78
  },
80
- "gitHead": "68855321e52d06a56e41473f302279d862f5509c"
79
+ "gitHead": "dba7af33b75e7fe104fa1dd8d5a322c702cc8ac9"
81
80
  }