tg-core-components 6.3.10-5 → 6.3.10-6

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.
@@ -27,9 +27,9 @@ var AmountItemHeader = function AmountItemHeader(_ref) {
27
27
  displayLimit && type === 'LoginTime' && React.createElement(
28
28
  'span',
29
29
  { className: 'info-amount' },
30
- displayLimit.RemainingAmount,
30
+ displayLimit.RemainingAmount / 60,
31
31
  '/',
32
- displayLimit.Amount,
32
+ displayLimit.Amount / 60,
33
33
  ' ',
34
34
  translate({
35
35
  id: 'label.hours-short',
@@ -18,6 +18,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
18
18
  * @param {Object} content - Optional cms content
19
19
  */
20
20
  var normalize = function normalize(limits, content) {
21
+ console.log('normalize limits', limits, content);
21
22
  return (content ? content.items.map(function (l) {
22
23
  return {
23
24
  type: l.config.type,
@@ -99,7 +100,7 @@ var defaultLimits = {
99
100
  LoginTime: {
100
101
  type: 'LoginTime',
101
102
  values: [1, 7, 30],
102
- valueType: 'hours'
103
+ valueType: 'minutes'
103
104
  },
104
105
  ProductSession: {
105
106
  type: 'ProductSession',
@@ -41,9 +41,9 @@ var AmountItemHeader = function AmountItemHeader(_ref) {
41
41
  displayLimit && type === 'LoginTime' && _react2.default.createElement(
42
42
  'span',
43
43
  { className: 'info-amount' },
44
- displayLimit.RemainingAmount,
44
+ displayLimit.RemainingAmount / 60,
45
45
  '/',
46
- displayLimit.Amount,
46
+ displayLimit.Amount / 60,
47
47
  ' ',
48
48
  (0, _translate2.default)({
49
49
  id: 'label.hours-short',
@@ -24,6 +24,7 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
24
24
  * @param {Object} content - Optional cms content
25
25
  */
26
26
  var normalize = function normalize(limits, content) {
27
+ console.log('normalize limits', limits, content);
27
28
  return (content ? content.items.map(function (l) {
28
29
  return {
29
30
  type: l.config.type,
@@ -105,7 +106,7 @@ var defaultLimits = {
105
106
  LoginTime: {
106
107
  type: 'LoginTime',
107
108
  values: [1, 7, 30],
108
- valueType: 'hours'
109
+ valueType: 'minutes'
109
110
  },
110
111
  ProductSession: {
111
112
  type: 'ProductSession',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.3.10-5",
3
+ "version": "6.3.10-6",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",