tg-core-components 6.3.4-3.3 → 6.3.4-3.4

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.
@@ -103,7 +103,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
103
103
  * Add a new limit with status "NewLimit"
104
104
  * There can only be one limit with status "NewLimit" for each type/timespan
105
105
  */
106
- var onChangeLimit = function onChangeLimit(type, product) {
106
+ var onChangeLimit = function onChangeLimit(type, product, maxAmounts) {
107
107
  return function (timespan) {
108
108
  return function (amount) {
109
109
  var newLimit = {
@@ -112,6 +112,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
112
112
  Product: product,
113
113
  Timespan: timespan,
114
114
  Amount: amount,
115
+ MaxAmount: maxAmounts,
115
116
  Status: 'NewLimit'
116
117
  };
117
118
  var limits = localLimits.filter(function (l) {
@@ -141,8 +142,8 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
141
142
  tooltipOpen: normalizedLimits.tooltipOpen
142
143
  }),
143
144
  React.createElement(LimitContent, _extends({
144
- onSubmitLimits: onSubmitLimits(normalizedLimits.type, normalizedLimits.product),
145
- onChangeLimit: onChangeLimit(normalizedLimits.type, normalizedLimits.product),
145
+ onSubmitLimits: onSubmitLimits(normalizedLimits.type, normalizedLimits.product, normalizedLimits.maxAmounts),
146
+ onChangeLimit: onChangeLimit(normalizedLimits.type, normalizedLimits.product, normalizedLimits.maxAmounts),
146
147
  hideSubmit: hideSubmit,
147
148
  onConfirmLimit: onConfirmLimit,
148
149
  onDeclineLimit: onDeclineLimit,
@@ -145,7 +145,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
145
145
  * Add a new limit with status "NewLimit"
146
146
  * There can only be one limit with status "NewLimit" for each type/timespan
147
147
  */
148
- var onChangeLimit = function onChangeLimit(type, product) {
148
+ var onChangeLimit = function onChangeLimit(type, product, maxAmounts) {
149
149
  return function (timespan) {
150
150
  return function (amount) {
151
151
  var newLimit = {
@@ -154,6 +154,7 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
154
154
  Product: product,
155
155
  Timespan: timespan,
156
156
  Amount: amount,
157
+ MaxAmount: maxAmounts,
157
158
  Status: 'NewLimit'
158
159
  };
159
160
  var limits = localLimits.filter(function (l) {
@@ -183,8 +184,8 @@ var ResponsibleGaming = function ResponsibleGaming(_ref) {
183
184
  tooltipOpen: normalizedLimits.tooltipOpen
184
185
  }),
185
186
  _react2.default.createElement(LimitContent, _extends({
186
- onSubmitLimits: onSubmitLimits(normalizedLimits.type, normalizedLimits.product),
187
- onChangeLimit: onChangeLimit(normalizedLimits.type, normalizedLimits.product),
187
+ onSubmitLimits: onSubmitLimits(normalizedLimits.type, normalizedLimits.product, normalizedLimits.maxAmounts),
188
+ onChangeLimit: onChangeLimit(normalizedLimits.type, normalizedLimits.product, normalizedLimits.maxAmounts),
188
189
  hideSubmit: hideSubmit,
189
190
  onConfirmLimit: onConfirmLimit,
190
191
  onDeclineLimit: onDeclineLimit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.3.4-3.3",
3
+ "version": "6.3.4-3.4",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",