@stokr/components-library 2.3.15 → 2.3.16
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/dist/components/Checklist/UserChecklist.js +0 -6
- package/dist/components/Checklist/UserChecklist.stories.js +0 -1
- package/dist/components/Header/Header.stories.js +1 -3
- package/dist/components/StepsProgress/StepsProgress.js +0 -8
- package/dist/index.js +0 -22
- package/dist/utils/check-todo-status.js +2 -3
- package/package.json +1 -1
|
@@ -98,7 +98,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
98
98
|
var country = user.country,
|
|
99
99
|
entity_name = user.entity_name,
|
|
100
100
|
countryObj = user.countryObj,
|
|
101
|
-
is_risk_questionnaire_finished = user.is_risk_questionnaire_finished,
|
|
102
101
|
kyc_status = user.kyc_status,
|
|
103
102
|
_user$wallets = user.wallets,
|
|
104
103
|
wallets = _user$wallets === void 0 ? [] : _user$wallets;
|
|
@@ -116,11 +115,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
116
115
|
message: getVerifyIdentityChecklist(isFromAllowedCountry, user).message,
|
|
117
116
|
state: getVerifyIdentityChecklist(isFromAllowedCountry, user).state,
|
|
118
117
|
link: getVerifyIdentityChecklist(isFromAllowedCountry, user).hasLink && "".concat(platformURL, "/verify-identity")
|
|
119
|
-
}, {
|
|
120
|
-
title: 'Risk Questionnaire',
|
|
121
|
-
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : is_risk_questionnaire_finished ? 'You have read and understood the risks' : 'Read the risks, tick the boxes, ta-da!',
|
|
122
|
-
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : is_risk_questionnaire_finished ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
123
|
-
link: isFromAllowedCountry && "".concat(platformURL, "/risk-questionnaire")
|
|
124
118
|
}]);
|
|
125
119
|
setwalletTasks([{
|
|
126
120
|
title: 'Liquid Address',
|
|
@@ -26,8 +26,7 @@ var _default = {
|
|
|
26
26
|
kyc_status: '',
|
|
27
27
|
KYCDocuments: '',
|
|
28
28
|
entity_name: '',
|
|
29
|
-
investor_eth_addresses: []
|
|
30
|
-
is_risk_questionnaire_finished: true
|
|
29
|
+
investor_eth_addresses: []
|
|
31
30
|
},
|
|
32
31
|
progress: {
|
|
33
32
|
type: 'object',
|
|
@@ -73,7 +72,6 @@ var userDev = {
|
|
|
73
72
|
entity_name: '',
|
|
74
73
|
active: true,
|
|
75
74
|
country: 'Germany',
|
|
76
|
-
is_risk_questionnaire_finished: false,
|
|
77
75
|
kyc_status: 'Accepted',
|
|
78
76
|
wallets: [{
|
|
79
77
|
_id: '641dd681b08b7543f433af1e',
|
|
@@ -16,7 +16,6 @@ var StepsProgressSignup = function StepsProgressSignup(props) {
|
|
|
16
16
|
var user = props.user;
|
|
17
17
|
var country = user.country,
|
|
18
18
|
kyc_status = user.kyc_status,
|
|
19
|
-
is_risk_questionnaire_finished = user.is_risk_questionnaire_finished,
|
|
20
19
|
taxId = user.taxId,
|
|
21
20
|
_user$wallets = user.wallets,
|
|
22
21
|
wallets = _user$wallets === void 0 ? [] : _user$wallets;
|
|
@@ -55,13 +54,6 @@ var StepsProgressSignup = function StepsProgressSignup(props) {
|
|
|
55
54
|
},
|
|
56
55
|
isDone: hasLiquidWallet,
|
|
57
56
|
isActive: isActiveStep('/register-liquid-securities')
|
|
58
|
-
}, {
|
|
59
|
-
id: 'risk',
|
|
60
|
-
handleClick: function handleClick() {
|
|
61
|
-
return navigate('/risk-questionnaire');
|
|
62
|
-
},
|
|
63
|
-
isDone: !!is_risk_questionnaire_finished,
|
|
64
|
-
isActive: isActiveStep('/risk-questionnaire')
|
|
65
57
|
}];
|
|
66
58
|
return /*#__PURE__*/_react.default.createElement(_StepsProgress.Container, null, /*#__PURE__*/_react.default.createElement(_StepsProgress.Wrap, null, /*#__PURE__*/_react.default.createElement(_StepsProgress.Items, null, items.map(function (item, key) {
|
|
67
59
|
return /*#__PURE__*/_react.default.createElement(_StepsProgress.Item, {
|
package/dist/index.js
CHANGED
|
@@ -806,28 +806,6 @@ Object.keys(_RequestDataBox).forEach(function (key) {
|
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
});
|
|
809
|
-
var _styles = require("./components/RiskQuestionnaire/_styles");
|
|
810
|
-
Object.keys(_styles).forEach(function (key) {
|
|
811
|
-
if (key === "default" || key === "__esModule") return;
|
|
812
|
-
if (key in exports && exports[key] === _styles[key]) return;
|
|
813
|
-
Object.defineProperty(exports, key, {
|
|
814
|
-
enumerable: true,
|
|
815
|
-
get: function get() {
|
|
816
|
-
return _styles[key];
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
var _RiskQuestionnaireContext = require("./components/RiskQuestionnaire/RiskQuestionnaireContext");
|
|
821
|
-
Object.keys(_RiskQuestionnaireContext).forEach(function (key) {
|
|
822
|
-
if (key === "default" || key === "__esModule") return;
|
|
823
|
-
if (key in exports && exports[key] === _RiskQuestionnaireContext[key]) return;
|
|
824
|
-
Object.defineProperty(exports, key, {
|
|
825
|
-
enumerable: true,
|
|
826
|
-
get: function get() {
|
|
827
|
-
return _RiskQuestionnaireContext[key];
|
|
828
|
-
}
|
|
829
|
-
});
|
|
830
|
-
});
|
|
831
809
|
var _SEO = require("./components/SEO/SEO");
|
|
832
810
|
Object.keys(_SEO).forEach(function (key) {
|
|
833
811
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -17,9 +17,8 @@ var checkTodoStatus = function checkTodoStatus(user) {
|
|
|
17
17
|
//wallet (we only check for liquid wallet)
|
|
18
18
|
!(user !== null && user !== void 0 && (_user$wallets = user.wallets) !== null && _user$wallets !== void 0 && _user$wallets.some(function (wallet) {
|
|
19
19
|
return wallet.type === _globalVariables.walletTypes.LIQUID;
|
|
20
|
-
})) && count
|
|
21
|
-
|
|
22
|
-
!user.is_risk_questionnaire_finished && count++
|
|
20
|
+
})) && count++
|
|
21
|
+
|
|
23
22
|
// KYC
|
|
24
23
|
;
|
|
25
24
|
(!user.kyc_status || user.kyc_status.toUpperCase() === 'DRAFT' || user.kyc_status.toUpperCase() === 'REAPPLY' || user.kyc_status.toUpperCase() === 'CANCELLED') && count++;
|