tg-core-components 6.0.2 → 6.0.5
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.
- package/es/components/Input/PhoneNumberInput.js +7 -1
- package/es/widgets/BonusWidget/BonusCode.js +2 -2
- package/es/widgets/CashierAccordion/Deposit/DepositWidget/index.js +27 -54
- package/es/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +35 -3
- package/lib/components/Input/PhoneNumberInput.js +7 -1
- package/lib/widgets/BonusWidget/BonusCode.js +2 -2
- package/lib/widgets/CashierAccordion/Deposit/DepositWidget/index.js +27 -54
- package/lib/widgets/CashierAccordion/Payment/PaymentAccountForms/index.js +35 -3
- package/package.json +2 -2
|
@@ -71,7 +71,10 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
71
71
|
callingCodeSelect.focus.onBlur();
|
|
72
72
|
_onBlur(e);
|
|
73
73
|
},
|
|
74
|
-
status: props.status
|
|
74
|
+
status: props.status,
|
|
75
|
+
leadingLane: [props.selectIcon].filter(function (i) {
|
|
76
|
+
return i;
|
|
77
|
+
}) }),
|
|
75
78
|
(props.callingCodes || []).map(function (c, i) {
|
|
76
79
|
return React.createElement(
|
|
77
80
|
Select.Option,
|
|
@@ -97,6 +100,9 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
97
100
|
_onBlur(e);
|
|
98
101
|
},
|
|
99
102
|
status: props.status,
|
|
103
|
+
leadingLane: [props.inputIcon].filter(function (i) {
|
|
104
|
+
return i;
|
|
105
|
+
}),
|
|
100
106
|
trailingLane: [statusIcons[props.status]].filter(function (i) {
|
|
101
107
|
return i;
|
|
102
108
|
})
|
|
@@ -75,10 +75,10 @@ var BonusCodeForm = function BonusCodeForm(_ref3) {
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
BonusCodeForm = compose(WithValidation(rules), injectIntl)(BonusCodeForm);
|
|
79
|
-
|
|
80
78
|
var rules = {
|
|
81
79
|
bonusCode: [[require, 'error.empty.bonusCode']]
|
|
82
80
|
};
|
|
83
81
|
|
|
82
|
+
BonusCodeForm = compose(WithValidation(rules), injectIntl)(BonusCodeForm);
|
|
83
|
+
|
|
84
84
|
export default Bonus;
|
|
@@ -544,45 +544,18 @@ var DepositWidget = function (_Component) {
|
|
|
544
544
|
var _initialiseProps = function _initialiseProps() {
|
|
545
545
|
var _this3 = this;
|
|
546
546
|
|
|
547
|
-
this.componentDidUpdate = function (prevProps) {
|
|
548
|
-
if (prevProps.shouldRenderSgaWarning !== _this3.props.shouldRenderSgaWarning) {
|
|
549
|
-
var _state2 = _this3.state,
|
|
550
|
-
currentAmount = _state2.currentAmount,
|
|
551
|
-
bonusCode = _state2.bonusCode;
|
|
552
|
-
|
|
553
|
-
_this3.handleNextStep({ amount: currentAmount, bonusCode: bonusCode });
|
|
554
|
-
}
|
|
555
|
-
};
|
|
556
|
-
|
|
557
547
|
this.handleNextStep = function (_ref6) {
|
|
558
548
|
var amount = _ref6.amount,
|
|
559
549
|
bonusCode = _ref6.bonusCode;
|
|
560
|
-
var
|
|
561
|
-
selectedMethod =
|
|
562
|
-
preDepositBonus =
|
|
563
|
-
selectedAccount =
|
|
564
|
-
var _props2 = _this3.props,
|
|
565
|
-
paymentStats = _props2.paymentStats,
|
|
566
|
-
renderSgaWarningPopup = _props2.renderSgaWarningPopup,
|
|
567
|
-
shouldRenderSgaWarning = _props2.shouldRenderSgaWarning;
|
|
550
|
+
var _state2 = _this3.state,
|
|
551
|
+
selectedMethod = _state2.selectedMethod,
|
|
552
|
+
preDepositBonus = _state2.preDepositBonus,
|
|
553
|
+
selectedAccount = _state2.selectedAccount;
|
|
568
554
|
|
|
569
555
|
|
|
570
556
|
var formExists = !!PaymentAccountForms[getPaymentForm(selectedMethod)];
|
|
571
557
|
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl'];
|
|
572
558
|
|
|
573
|
-
var remainingAmount = 5000 - Number(paymentStats.TotalDepositLast7Days);
|
|
574
|
-
var renderSgaWarning = shouldRenderSgaWarning && Number(paymentStats.TotalDepositLast7Days) + Number(amount) > 5000;
|
|
575
|
-
|
|
576
|
-
if (renderSgaWarning) {
|
|
577
|
-
_this3.setState({
|
|
578
|
-
buttonLoading: null,
|
|
579
|
-
currentAmount: amount,
|
|
580
|
-
bonusCode: bonusCode
|
|
581
|
-
});
|
|
582
|
-
renderSgaWarningPopup(remainingAmount);
|
|
583
|
-
return;
|
|
584
|
-
}
|
|
585
|
-
|
|
586
559
|
if (!formExists || selectedAccount.accountId && skipFillInStep.includes(selectedMethod.providerType.toLowerCase())) {
|
|
587
560
|
return _this3.onSubmit({
|
|
588
561
|
currentAmount: amount,
|
|
@@ -600,9 +573,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
600
573
|
};
|
|
601
574
|
|
|
602
575
|
this.handleBackStep = function () {
|
|
603
|
-
var
|
|
604
|
-
currentStep =
|
|
605
|
-
buttonLoading =
|
|
576
|
+
var _state3 = _this3.state,
|
|
577
|
+
currentStep = _state3.currentStep,
|
|
578
|
+
buttonLoading = _state3.buttonLoading;
|
|
606
579
|
|
|
607
580
|
|
|
608
581
|
if (buttonLoading === 'fill-in-submit') return null;
|
|
@@ -619,13 +592,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
619
592
|
};
|
|
620
593
|
|
|
621
594
|
this.onSubmit = function (data) {
|
|
622
|
-
var
|
|
623
|
-
onSubmit =
|
|
624
|
-
countries =
|
|
625
|
-
user =
|
|
626
|
-
var
|
|
627
|
-
selectedMethod =
|
|
628
|
-
swishNumber =
|
|
595
|
+
var _props2 = _this3.props,
|
|
596
|
+
onSubmit = _props2.onSubmit,
|
|
597
|
+
countries = _props2.countries,
|
|
598
|
+
user = _props2.user;
|
|
599
|
+
var _state4 = _this3.state,
|
|
600
|
+
selectedMethod = _state4.selectedMethod,
|
|
601
|
+
swishNumber = _state4.swishNumber;
|
|
629
602
|
|
|
630
603
|
|
|
631
604
|
var submitData = _extends({}, _this3.state, data);
|
|
@@ -658,12 +631,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
658
631
|
|
|
659
632
|
this.onSelectMethod = function (_ref7) {
|
|
660
633
|
var method = _ref7.method;
|
|
661
|
-
var
|
|
662
|
-
currency =
|
|
663
|
-
paymentStats =
|
|
664
|
-
remainingDepositLimit =
|
|
665
|
-
payments =
|
|
666
|
-
shouldAutoFocus =
|
|
634
|
+
var _props3 = _this3.props,
|
|
635
|
+
currency = _props3.currency,
|
|
636
|
+
paymentStats = _props3.paymentStats,
|
|
637
|
+
remainingDepositLimit = _props3.remainingDepositLimit,
|
|
638
|
+
payments = _props3.payments,
|
|
639
|
+
shouldAutoFocus = _props3.shouldAutoFocus;
|
|
667
640
|
|
|
668
641
|
|
|
669
642
|
if (shouldAutoFocus) {
|
|
@@ -728,9 +701,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
728
701
|
};
|
|
729
702
|
|
|
730
703
|
this.getMinDepositBonusAmount = function () {
|
|
731
|
-
var
|
|
732
|
-
bonuses =
|
|
733
|
-
currency =
|
|
704
|
+
var _props4 = _this3.props,
|
|
705
|
+
bonuses = _props4.bonuses,
|
|
706
|
+
currency = _props4.currency;
|
|
734
707
|
var bonusCode = _this3.state.bonusCode;
|
|
735
708
|
|
|
736
709
|
|
|
@@ -753,10 +726,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
753
726
|
};
|
|
754
727
|
|
|
755
728
|
this.getSpainRemainingDepositAmount = function () {
|
|
756
|
-
var
|
|
757
|
-
jurisdiction =
|
|
758
|
-
hasIdApproved =
|
|
759
|
-
paymentStats =
|
|
729
|
+
var _props5 = _this3.props,
|
|
730
|
+
jurisdiction = _props5.jurisdiction,
|
|
731
|
+
hasIdApproved = _props5.hasIdApproved,
|
|
732
|
+
paymentStats = _props5.paymentStats;
|
|
760
733
|
|
|
761
734
|
return jurisdiction.toLowerCase() === 'es' && !hasIdApproved && (150 - parseFloat(paymentStats.TotalDeposit) < 0 ? 0 : 150 - parseFloat(paymentStats.TotalDeposit));
|
|
762
735
|
};
|
|
@@ -501,7 +501,8 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
501
501
|
var account = _ref9.account,
|
|
502
502
|
intl = _ref9.intl,
|
|
503
503
|
values = _ref9.values,
|
|
504
|
-
change = _ref9.change
|
|
504
|
+
change = _ref9.change,
|
|
505
|
+
country = _ref9.country;
|
|
505
506
|
|
|
506
507
|
return React.createElement(
|
|
507
508
|
'div',
|
|
@@ -525,7 +526,31 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
525
526
|
},
|
|
526
527
|
label: translate({ id: 'cashier.details.bic' }, intl),
|
|
527
528
|
disabled: account.accountId
|
|
528
|
-
})
|
|
529
|
+
}),
|
|
530
|
+
['AE'].includes(country) && React.createElement(
|
|
531
|
+
React.Fragment,
|
|
532
|
+
null,
|
|
533
|
+
React.createElement(Input, {
|
|
534
|
+
required: true,
|
|
535
|
+
name: 'beneficiaryCountry',
|
|
536
|
+
value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['beneficiaryCountry'],
|
|
537
|
+
onChange: function onChange(e, beneficiaryCountry) {
|
|
538
|
+
return change('beneficiaryCountry', beneficiaryCountry);
|
|
539
|
+
},
|
|
540
|
+
label: translate({ id: 'cashier.details.beneficiaryCountry' }, intl),
|
|
541
|
+
disabled: account.accountId
|
|
542
|
+
}),
|
|
543
|
+
React.createElement(Input, {
|
|
544
|
+
required: true,
|
|
545
|
+
name: 'bankName',
|
|
546
|
+
value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['bankName'],
|
|
547
|
+
onChange: function onChange(e, bankName) {
|
|
548
|
+
return change('bankName', bankName);
|
|
549
|
+
},
|
|
550
|
+
label: translate({ id: 'cashier.details.bankName' }, intl),
|
|
551
|
+
disabled: account.accountId
|
|
552
|
+
})
|
|
553
|
+
)
|
|
529
554
|
);
|
|
530
555
|
};
|
|
531
556
|
|
|
@@ -665,7 +690,8 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
665
690
|
var EzeeWallet = function EzeeWallet(_ref14) {
|
|
666
691
|
var account = _ref14.account,
|
|
667
692
|
intl = _ref14.intl,
|
|
668
|
-
method = _ref14.method
|
|
693
|
+
method = _ref14.method,
|
|
694
|
+
change = _ref14.change;
|
|
669
695
|
|
|
670
696
|
return React.createElement(
|
|
671
697
|
'div',
|
|
@@ -678,12 +704,18 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
678
704
|
defaultMessage: 'Wallet ID'
|
|
679
705
|
}, intl),
|
|
680
706
|
disabled: account.accountId,
|
|
707
|
+
onChange: function onChange(_, walletId) {
|
|
708
|
+
return change('walletId', walletId);
|
|
709
|
+
},
|
|
681
710
|
value: account.maskedAccount
|
|
682
711
|
}),
|
|
683
712
|
method === 'deposit' && React.createElement(Input, {
|
|
684
713
|
required: true,
|
|
685
714
|
type: 'password',
|
|
686
715
|
name: 'walletPassword',
|
|
716
|
+
onChange: function onChange(_, walletPassword) {
|
|
717
|
+
return change('walletPassword', walletPassword);
|
|
718
|
+
},
|
|
687
719
|
label: translate({
|
|
688
720
|
id: 'cashier.details.walletPassword',
|
|
689
721
|
defaultMessage: 'Wallet password'
|
|
@@ -88,7 +88,10 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
88
88
|
callingCodeSelect.focus.onBlur();
|
|
89
89
|
_onBlur(e);
|
|
90
90
|
},
|
|
91
|
-
status: props.status
|
|
91
|
+
status: props.status,
|
|
92
|
+
leadingLane: [props.selectIcon].filter(function (i) {
|
|
93
|
+
return i;
|
|
94
|
+
}) }),
|
|
92
95
|
(props.callingCodes || []).map(function (c, i) {
|
|
93
96
|
return _react2.default.createElement(
|
|
94
97
|
_common.Select.Option,
|
|
@@ -114,6 +117,9 @@ var PhoneNumberInput = function PhoneNumberInput(props) {
|
|
|
114
117
|
_onBlur(e);
|
|
115
118
|
},
|
|
116
119
|
status: props.status,
|
|
120
|
+
leadingLane: [props.inputIcon].filter(function (i) {
|
|
121
|
+
return i;
|
|
122
|
+
}),
|
|
117
123
|
trailingLane: [_common.statusIcons[props.status]].filter(function (i) {
|
|
118
124
|
return i;
|
|
119
125
|
})
|
|
@@ -104,10 +104,10 @@ var BonusCodeForm = function BonusCodeForm(_ref3) {
|
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
BonusCodeForm = (0, _compose2.default)((0, _WithValidation2.default)(rules), _reactIntl.injectIntl)(BonusCodeForm);
|
|
108
|
-
|
|
109
107
|
var rules = {
|
|
110
108
|
bonusCode: [[_required2.default, 'error.empty.bonusCode']]
|
|
111
109
|
};
|
|
112
110
|
|
|
111
|
+
BonusCodeForm = (0, _compose2.default)((0, _WithValidation2.default)(rules), _reactIntl.injectIntl)(BonusCodeForm);
|
|
112
|
+
|
|
113
113
|
exports.default = Bonus;
|
|
@@ -609,45 +609,18 @@ var DepositWidget = function (_Component) {
|
|
|
609
609
|
var _initialiseProps = function _initialiseProps() {
|
|
610
610
|
var _this3 = this;
|
|
611
611
|
|
|
612
|
-
this.componentDidUpdate = function (prevProps) {
|
|
613
|
-
if (prevProps.shouldRenderSgaWarning !== _this3.props.shouldRenderSgaWarning) {
|
|
614
|
-
var _state2 = _this3.state,
|
|
615
|
-
currentAmount = _state2.currentAmount,
|
|
616
|
-
bonusCode = _state2.bonusCode;
|
|
617
|
-
|
|
618
|
-
_this3.handleNextStep({ amount: currentAmount, bonusCode: bonusCode });
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
|
|
622
612
|
this.handleNextStep = function (_ref6) {
|
|
623
613
|
var amount = _ref6.amount,
|
|
624
614
|
bonusCode = _ref6.bonusCode;
|
|
625
|
-
var
|
|
626
|
-
selectedMethod =
|
|
627
|
-
preDepositBonus =
|
|
628
|
-
selectedAccount =
|
|
629
|
-
var _props2 = _this3.props,
|
|
630
|
-
paymentStats = _props2.paymentStats,
|
|
631
|
-
renderSgaWarningPopup = _props2.renderSgaWarningPopup,
|
|
632
|
-
shouldRenderSgaWarning = _props2.shouldRenderSgaWarning;
|
|
615
|
+
var _state2 = _this3.state,
|
|
616
|
+
selectedMethod = _state2.selectedMethod,
|
|
617
|
+
preDepositBonus = _state2.preDepositBonus,
|
|
618
|
+
selectedAccount = _state2.selectedAccount;
|
|
633
619
|
|
|
634
620
|
|
|
635
621
|
var formExists = !!PaymentAccountForms[(0, _Payment.getPaymentForm)(selectedMethod)];
|
|
636
622
|
var skipFillInStep = ['skrill', 'bestpay', 'jeton', 'bankiban', 'bankintl'];
|
|
637
623
|
|
|
638
|
-
var remainingAmount = 5000 - Number(paymentStats.TotalDepositLast7Days);
|
|
639
|
-
var renderSgaWarning = shouldRenderSgaWarning && Number(paymentStats.TotalDepositLast7Days) + Number(amount) > 5000;
|
|
640
|
-
|
|
641
|
-
if (renderSgaWarning) {
|
|
642
|
-
_this3.setState({
|
|
643
|
-
buttonLoading: null,
|
|
644
|
-
currentAmount: amount,
|
|
645
|
-
bonusCode: bonusCode
|
|
646
|
-
});
|
|
647
|
-
renderSgaWarningPopup(remainingAmount);
|
|
648
|
-
return;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
624
|
if (!formExists || selectedAccount.accountId && skipFillInStep.includes(selectedMethod.providerType.toLowerCase())) {
|
|
652
625
|
return _this3.onSubmit({
|
|
653
626
|
currentAmount: amount,
|
|
@@ -665,9 +638,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
665
638
|
};
|
|
666
639
|
|
|
667
640
|
this.handleBackStep = function () {
|
|
668
|
-
var
|
|
669
|
-
currentStep =
|
|
670
|
-
buttonLoading =
|
|
641
|
+
var _state3 = _this3.state,
|
|
642
|
+
currentStep = _state3.currentStep,
|
|
643
|
+
buttonLoading = _state3.buttonLoading;
|
|
671
644
|
|
|
672
645
|
|
|
673
646
|
if (buttonLoading === 'fill-in-submit') return null;
|
|
@@ -684,13 +657,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
684
657
|
};
|
|
685
658
|
|
|
686
659
|
this.onSubmit = function (data) {
|
|
687
|
-
var
|
|
688
|
-
onSubmit =
|
|
689
|
-
countries =
|
|
690
|
-
user =
|
|
691
|
-
var
|
|
692
|
-
selectedMethod =
|
|
693
|
-
swishNumber =
|
|
660
|
+
var _props2 = _this3.props,
|
|
661
|
+
onSubmit = _props2.onSubmit,
|
|
662
|
+
countries = _props2.countries,
|
|
663
|
+
user = _props2.user;
|
|
664
|
+
var _state4 = _this3.state,
|
|
665
|
+
selectedMethod = _state4.selectedMethod,
|
|
666
|
+
swishNumber = _state4.swishNumber;
|
|
694
667
|
|
|
695
668
|
|
|
696
669
|
var submitData = _extends({}, _this3.state, data);
|
|
@@ -723,12 +696,12 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
723
696
|
|
|
724
697
|
this.onSelectMethod = function (_ref7) {
|
|
725
698
|
var method = _ref7.method;
|
|
726
|
-
var
|
|
727
|
-
currency =
|
|
728
|
-
paymentStats =
|
|
729
|
-
remainingDepositLimit =
|
|
730
|
-
payments =
|
|
731
|
-
shouldAutoFocus =
|
|
699
|
+
var _props3 = _this3.props,
|
|
700
|
+
currency = _props3.currency,
|
|
701
|
+
paymentStats = _props3.paymentStats,
|
|
702
|
+
remainingDepositLimit = _props3.remainingDepositLimit,
|
|
703
|
+
payments = _props3.payments,
|
|
704
|
+
shouldAutoFocus = _props3.shouldAutoFocus;
|
|
732
705
|
|
|
733
706
|
|
|
734
707
|
if (shouldAutoFocus) {
|
|
@@ -793,9 +766,9 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
793
766
|
};
|
|
794
767
|
|
|
795
768
|
this.getMinDepositBonusAmount = function () {
|
|
796
|
-
var
|
|
797
|
-
bonuses =
|
|
798
|
-
currency =
|
|
769
|
+
var _props4 = _this3.props,
|
|
770
|
+
bonuses = _props4.bonuses,
|
|
771
|
+
currency = _props4.currency;
|
|
799
772
|
var bonusCode = _this3.state.bonusCode;
|
|
800
773
|
|
|
801
774
|
|
|
@@ -818,10 +791,10 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
818
791
|
};
|
|
819
792
|
|
|
820
793
|
this.getSpainRemainingDepositAmount = function () {
|
|
821
|
-
var
|
|
822
|
-
jurisdiction =
|
|
823
|
-
hasIdApproved =
|
|
824
|
-
paymentStats =
|
|
794
|
+
var _props5 = _this3.props,
|
|
795
|
+
jurisdiction = _props5.jurisdiction,
|
|
796
|
+
hasIdApproved = _props5.hasIdApproved,
|
|
797
|
+
paymentStats = _props5.paymentStats;
|
|
825
798
|
|
|
826
799
|
return jurisdiction.toLowerCase() === 'es' && !hasIdApproved && (150 - parseFloat(paymentStats.TotalDeposit) < 0 ? 0 : 150 - parseFloat(paymentStats.TotalDeposit));
|
|
827
800
|
};
|
|
@@ -538,7 +538,8 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
538
538
|
var account = _ref9.account,
|
|
539
539
|
intl = _ref9.intl,
|
|
540
540
|
values = _ref9.values,
|
|
541
|
-
change = _ref9.change
|
|
541
|
+
change = _ref9.change,
|
|
542
|
+
country = _ref9.country;
|
|
542
543
|
|
|
543
544
|
return _react2.default.createElement(
|
|
544
545
|
'div',
|
|
@@ -562,7 +563,31 @@ var BankIntl = function BankIntl(_ref9) {
|
|
|
562
563
|
},
|
|
563
564
|
label: (0, _translate2.default)({ id: 'cashier.details.bic' }, intl),
|
|
564
565
|
disabled: account.accountId
|
|
565
|
-
})
|
|
566
|
+
}),
|
|
567
|
+
['AE'].includes(country) && _react2.default.createElement(
|
|
568
|
+
_react2.default.Fragment,
|
|
569
|
+
null,
|
|
570
|
+
_react2.default.createElement(_Input2.default, {
|
|
571
|
+
required: true,
|
|
572
|
+
name: 'beneficiaryCountry',
|
|
573
|
+
value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['beneficiaryCountry'],
|
|
574
|
+
onChange: function onChange(e, beneficiaryCountry) {
|
|
575
|
+
return change('beneficiaryCountry', beneficiaryCountry);
|
|
576
|
+
},
|
|
577
|
+
label: (0, _translate2.default)({ id: 'cashier.details.beneficiaryCountry' }, intl),
|
|
578
|
+
disabled: account.accountId
|
|
579
|
+
}),
|
|
580
|
+
_react2.default.createElement(_Input2.default, {
|
|
581
|
+
required: true,
|
|
582
|
+
name: 'bankName',
|
|
583
|
+
value: account.accountId ? account.maskedAccount.replace(/\s(.*)/g, '') : values['bankName'],
|
|
584
|
+
onChange: function onChange(e, bankName) {
|
|
585
|
+
return change('bankName', bankName);
|
|
586
|
+
},
|
|
587
|
+
label: (0, _translate2.default)({ id: 'cashier.details.bankName' }, intl),
|
|
588
|
+
disabled: account.accountId
|
|
589
|
+
})
|
|
590
|
+
)
|
|
566
591
|
);
|
|
567
592
|
};
|
|
568
593
|
|
|
@@ -702,7 +727,8 @@ var Mifinity = function Mifinity(_ref13) {
|
|
|
702
727
|
var EzeeWallet = function EzeeWallet(_ref14) {
|
|
703
728
|
var account = _ref14.account,
|
|
704
729
|
intl = _ref14.intl,
|
|
705
|
-
method = _ref14.method
|
|
730
|
+
method = _ref14.method,
|
|
731
|
+
change = _ref14.change;
|
|
706
732
|
|
|
707
733
|
return _react2.default.createElement(
|
|
708
734
|
'div',
|
|
@@ -715,12 +741,18 @@ var EzeeWallet = function EzeeWallet(_ref14) {
|
|
|
715
741
|
defaultMessage: 'Wallet ID'
|
|
716
742
|
}, intl),
|
|
717
743
|
disabled: account.accountId,
|
|
744
|
+
onChange: function onChange(_, walletId) {
|
|
745
|
+
return change('walletId', walletId);
|
|
746
|
+
},
|
|
718
747
|
value: account.maskedAccount
|
|
719
748
|
}),
|
|
720
749
|
method === 'deposit' && _react2.default.createElement(_Input2.default, {
|
|
721
750
|
required: true,
|
|
722
751
|
type: 'password',
|
|
723
752
|
name: 'walletPassword',
|
|
753
|
+
onChange: function onChange(_, walletPassword) {
|
|
754
|
+
return change('walletPassword', walletPassword);
|
|
755
|
+
},
|
|
724
756
|
label: (0, _translate2.default)({
|
|
725
757
|
id: 'cashier.details.walletPassword',
|
|
726
758
|
defaultMessage: 'Wallet password'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "376f83774543ad0744a20cf4eaa2e93970763764"
|
|
80
80
|
}
|