tg-core-components 6.2.0-edit-profile.0 → 6.2.0-edit-profile.1
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.
|
@@ -49,7 +49,8 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
49
49
|
jurisdiction = _ref.jurisdiction,
|
|
50
50
|
countries = _ref.countries,
|
|
51
51
|
isLoading = _ref.isLoading,
|
|
52
|
-
isComplete = _ref.isComplete
|
|
52
|
+
isComplete = _ref.isComplete,
|
|
53
|
+
showCallingCode = _ref.showCallingCode;
|
|
53
54
|
|
|
54
55
|
return React.createElement(
|
|
55
56
|
'form',
|
|
@@ -161,7 +162,7 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
161
162
|
id: 'title.mobile_number',
|
|
162
163
|
defaultMessage: 'Mobile number'
|
|
163
164
|
}, intl),
|
|
164
|
-
callingCodes:
|
|
165
|
+
callingCodes: showCallingCode && countries ? countries.sort(function (a, b) {
|
|
165
166
|
return Number(a.callingCode) - Number(b.callingCode);
|
|
166
167
|
}).map(function (i) {
|
|
167
168
|
return {
|
|
@@ -102,7 +102,8 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
102
102
|
jurisdiction = _ref.jurisdiction,
|
|
103
103
|
countries = _ref.countries,
|
|
104
104
|
isLoading = _ref.isLoading,
|
|
105
|
-
isComplete = _ref.isComplete
|
|
105
|
+
isComplete = _ref.isComplete,
|
|
106
|
+
showCallingCode = _ref.showCallingCode;
|
|
106
107
|
|
|
107
108
|
return _react2.default.createElement(
|
|
108
109
|
'form',
|
|
@@ -214,7 +215,7 @@ var AccountDetail = function AccountDetail(_ref) {
|
|
|
214
215
|
id: 'title.mobile_number',
|
|
215
216
|
defaultMessage: 'Mobile number'
|
|
216
217
|
}, intl),
|
|
217
|
-
callingCodes:
|
|
218
|
+
callingCodes: showCallingCode && countries ? countries.sort(function (a, b) {
|
|
218
219
|
return Number(a.callingCode) - Number(b.callingCode);
|
|
219
220
|
}).map(function (i) {
|
|
220
221
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.2.0-edit-profile.
|
|
3
|
+
"version": "6.2.0-edit-profile.1",
|
|
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": "a86b4bd5cbd94731bfee1dce5f01b558a17dd1f4"
|
|
80
80
|
}
|